Difference between revisions of "SetPlayerControls - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Fg109
imported>Fg109
m
Line 22: Line 22:
</source>
</source>


===Notes==
== Notes ==
*NPC will have AI disabled after setting to player controlled.  Call [[EnableAI - Actor|EnableAI]] afterwards to actually move the NPC.
*NPC will have AI disabled after setting to player controlled.  Call [[EnableAI - Actor|EnableAI]] afterwards to actually move the NPC.


Line 28: Line 28:
*[[Actor Script]]
*[[Actor Script]]
*[[GetPlayerControls - Actor]]
*[[GetPlayerControls - Actor]]
*[[EnableAI - Actor]]

Revision as of 14:07, 27 May 2012

Member of: Actor Script

Set the actor as being controlled (or not controlled) by the player's controls.

Syntax

Function SetPlayerControls(bool abControls) native

Parameters

  • abControls: Whether this actor is controlled by the player's controls or not

Return Value

None.

Examples

; Control the puppet with the player's controls
Puppet.SetPlayerControls(true)

Notes

  • NPC will have AI disabled after setting to player controlled. Call EnableAI afterwards to actually move the NPC.

See Also