×
Fallout Wiki
☢  Independent Fallout Wiki Resources  Vault logo

OnCommandModeGiveCommand - Actor

Resource:Creation Kit > OnCommandModeGiveCommand - Actor


Member of: Resource:Creation Kit/Actor Script

Event called when the actor in command mode with player is given a command

Syntax[edit]

Event OnCommandModeGiveCommand(int aeCommandType, ObjectReference akTarget)

Parameters[edit]

  • aeCommandType: Type of Command that is given, which is one of the following:
    • 0 - None
    • 1 - Call
    • 2 - Follow
    • 3 - Move
    • 4 - Attack
    • 5 - Inspect
    • 6 - Retrieve
    • 7 - Stay
    • 8 - Release
    • 9 - Heal
    • 10 - Workshop Assign
    • 11 - Ride Vertibird
    • 12 - Enter Power Armor
  • akTarget: The ObjectReference that was the target of the command.

Examples[edit]

Event OnCommandModeGiveCommand(int aeCommandType, ObjectReference akTarget)
  if aeCommandType == 2
    Debug.Trace("Time to follow the player!")
  endIf
endEvent

See Also[edit]