SetCommandState - Actor
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.
SyntaxEdit
Function SetCommandState(bool abStartCommandMode) native
ParametersEdit
- abStartCommandMode : True if setting into command mode, false if removing them from command mode
Return ValueEdit
None.
ExamplesEdit
; Hold-up an NPC at gunpoint
HoldUpTarget.SetCanDoCommand( true )
HoldUpTarget.SetCommandState( true )