REDNODE / GAME API

PlayerSystem

classnative name cpPlayerSystemnative

extends gamePlayerSystem › gameIPlayerSystem › IGameSystem › IScriptable › ISerializable

Methods 17

native func FindPlayerControlledObjects(position: Vector4, radius: Float, includeLocalPlayers: Bool, includeRemotePlayers: Bool, out outPlayerGameObjects: array<ref<GameObject>>) -> Uint32
native const func GetGameInstance() -> GameInstance
native const func GetLocalPlayerControlledGameObject() -> ref<GameObject>
native const func GetLocalPlayerMainGameObject() -> ref<GameObject>
public final const func GetPossessedByJohnnyFactName() -> Stringscripted
native func IsCPOControlSchemeForced() -> Bool
native func IsInFreeCamera() -> Bool
native func LocalPlayerControlExistingObject(entityID: EntityID)
protected final cb func OnGameRestored() -> Boolscripted
protected final cb func OnLocalPlayerChanged(controlledObject: wref<GameObject>) -> Boolscripted
protected final cb func OnLocalPlayerPossesionChanged(playerPossesion: gamedataPlayerPossesion) -> Boolscripted
protected final cb func OnShutdown() -> Boolscripted
native func RegisterPlayerPuppetAttachedCallback(object: ref<IScriptable>, func: CName) -> Uint32
native func RegisterPlayerPuppetDetachedCallback(object: ref<IScriptable>, func: CName) -> Uint32
native func SetFreeCameraTransform(newTransform: Transform)
native func UnregisterPlayerPuppetAttachedCallback(callbackID: Uint32)
native func UnregisterPlayerPuppetDetachedCallback(callbackID: Uint32)