SetPlayerControls - Actor
Member of: Actor Script
Set the actor as being controlled (or not controlled) by the player's controls.
SyntaxEdit
Function SetPlayerControls(bool abControls) native
ParametersEdit
- abControls: Whether this actor is controlled by the player's controls or not
Return ValueEdit
None.
ExamplesEdit
; Control the puppet with the player's controls
Puppet.SetPlayerControls(true)
NotesEdit
- NPC will have AI disabled after setting to player controlled. Call EnableAI afterwards to actually move the NPC.
- Do not use this method to disable/enable player controls to the main character. Use DisablePlayerControls - Game / EnablePlayerControls - Game.