Description
Wiki Description
Set the actor as being controlled (or not controlled) by the player's controls.
Documentation Comment
Set/reset whether player input being sent to the actor
Caveats
CK Wiki - Notes
- NPC will have AI disabled after setting to player controlled. Call Actor.EnableAI(...) afterwards to actually move the NPC.
- Do not use this method to disable/enable player controls to the main character. Use Game.DisablePlayerControls(...) / Game.EnablePlayerControls(...).
Parameters
boolabControls
CK Wiki Description
Whether this actor is controlled by the player's controls or not
Examples
; Control the puppet with the player's controls
Puppet.SetPlayerControls(true)Auto-Generated Example
bool myBool__abControls
myActor__toCallFunctionOn.SetPlayerControls(myBool__abControls)Related Pages
- Actor
- Actor.GetPlayerControls()
- Actor.EnableAI(...)
