Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
PlayerSystem
Documents the PlayerSystem class and its functions.
NOT DOCUMENTED We currently don't have information on how these functions work. They are being documented here for visibility.

Invoking PlayerSystem

To invoke the player system, use the following Global function:
1
ps = Game.PlayerSystem()
Copied!

Sub-functions

FindPlayerControlledObjects

FindPlayerControlledObjects
Info & Usage
1
FindPlayerControlledObjects(position : Vector4, radius : Float, includeLocalPlayers : Bool, includeRemotePlayers : Bool, out outPlayerGameObjects : array:ref:GameObject) : Uint32;
Copied!

GetLocalPlayerControlledGameObject

GetLocalPlayerControlledGameObject
Info & Usage
1
GetLocalPlayerControlledGameObject() : ref:GameObject;
Copied!

GetLocalPlayerMainGameObject

GetLocalPlayerMainGameObject
Info & Usage
1
GetLocalPlayerMainGameObject() : ref:GameObject;
Copied!

GetPossessedByJohnnyFactName

GetPossessedByJohnnyFactName
Info & Usage
1
GetPossessedByJohnnyFactName() : String;
Copied!

IsCPOControlSchemeForced

IsCPOControlSchemeForced
Info & Usage
1
IsCPOControlSchemeForced() : Bool;
Copied!

IsInFreeCamera

IsInFreeCamera
Info & Usage
1
IsInFreeCamera() : Bool;
Copied!

LocalPlayerControlExistingObject

LocalPlayerControlExistingObject
Info & Usage
1
LocalPlayerControlExistingObject(entityID : EntityID);
Copied!

OnGameRestored

OnGameRestored
Info & Usage
1
OnGameRestored(game : GameInstance) : Bool;
Copied!

OnLocalPlayerChanged

OnLocalPlayerChanged
Info & Usage
1
OnLocalPlayerChanged(controlledObject : wref:GameObject) : Bool;
Copied!

OnLocalPlayerPossesionChanged

OnLocalPlayerPossesionChanged
Info & Usage
1
OnLocalPlayerPossesionChanged(playerPossesion : gamedataPlayerPossesion) : Bool;
Copied!

RegisterPlayerPuppetAttachedCallback

RegisterPlayerPuppetAttachedCallback
Info & Usage
1
RegisterPlayerPuppetAttachedCallback(object : ref:IScriptable, func : CName) : Uint32;
Copied!

RegisterPlayerPuppetDetachedCallback

RegisterPlayerPuppetDetachedCallback
Info & Usage
1
RegisterPlayerPuppetDetachedCallback(object : ref:IScriptable, func : CName) : Uint32;
Copied!

SetFreeCameraTransform

SetFreeCameraTransform
Info & Usage
1
SetFreeCameraTransform(newTransform : Transform);
Copied!

UnregisterPlayerPuppetAttachedCallback

UnregisterPlayerPuppetAttachedCallback
Info & Usage
1
UnregisterPlayerPuppetAttachedCallback(callbackID : Uint32);
Copied!

UnregisterPlayerPuppetDetachedCallback

UnregisterPlayerPuppetDetachedCallback
Info & Usage
1
UnregisterPlayerPuppetDetachedCallback(callbackID : Uint32);
Copied!
Last modified 9mo ago