Background for Fallout 4
Member of the Actor script
voidfunctionSetCommandState(boolabStartCommandMode)Native

Description

Wiki Description

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.

Documentation Comment

Sets/Unsets the actor in command mode so that we can order them around. SetCanDoCommand() needs to have already been called on the actor.


Parameters

  1. boolabStartCommandMode

    CK Wiki Description

    True if setting into command mode, false if removing them from command mode


Examples

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

Auto-Generated Example

bool myBool__abStartCommandMode

myActor__toCallFunctionOn.SetCommandState(myBool__abStartCommandMode)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.