Difference between revisions of "SetPlayerControls - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Dog
imported>KaXaK
m
 
(3 intermediate revisions by 2 users not shown)
Line 22: Line 22:
</source>
</source>


Note: It seems this function does not work at all. [http://forums.bethsoft.com/topic/1348962-setplayercontrols-and-papyrus/]
== Notes ==
*NPC will have AI disabled after setting to player controlled. Call [[EnableAI - Actor|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]].


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]
*[[GetPlayerControls - Actor]]
*[[GetPlayerControls - Actor]]
*[[EnableAI - Actor]]

Latest revision as of 20:46, 20 February 2013

Member of: Actor Script

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

Syntax[edit | edit source]

Function SetPlayerControls(bool abControls) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

See Also[edit | edit source]