OnCommandModeCompleteCommand - Actor

From the Fallout4 CreationKit Wiki
Revision as of 15:39, 21 February 2014 by imported>Deazurain (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Event called when the actor in command mode with player finishes his current command

Syntax[edit | edit source]

Event OnCommandModeCompleteCommand(int aeCommandType, ObjectReference akTarget)

Parameters[edit | edit source]

  • aeCommandType: Type of Command that is finished, 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
  • akTarget: The ObjectReference that was the target of the command.

Examples[edit | edit source]

Event OnCommandModeCompleteCommand(int aeCommandType, ObjectReference akTarget)
  if aeCommandType == 4
    Debug.Trace("We've finished attacking, can we have a doggie biscuit now?")
  endIf
endEvent

See Also[edit | edit source]