SetCommandState - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Sets/Unsets the actor in command mode so that we can order them around. SetCanDoCommand() needs to have already been called on the actor, or they already need to be 'commandable', e.g. teammates.


Syntax[edit | edit source]

Function SetCommandState(bool abStartCommandMode) native

Parameters[edit | edit source]

  • abStartCommandMode : True if setting into command mode, false if removing them from command mode

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Hold-up an NPC at gunpoint
HoldUpTarget.SetCanDoCommand( true )
HoldUpTarget.SetCommandState( true )


See Also[edit | edit source]