Background for Starfield
Member of the Actor script
eventOnCommandModeGiveCommand(intaeCommandType, ObjectReferenceakTarget)

Description

Wiki Description

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

Documentation Comment

Event received when the player gives actor a command in command mode.
Type is as follows:
0 - None
1 - Call
2 - Follow
3 - Move
4 - Attack
5 - Inspect
6 - Retrieve
7 - Stay
8 - Release
9 - Heal
10 - Assign
11 - Ride
12 - Enter


Parameters

  1. intaeCommandType

    CK Wiki Description

    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
  2. ObjectReferenceakTarget

    CK Wiki Description

    The ObjectReference that was the target of the command.


Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnCommandModeGiveCommand(int aeCommandType, ObjectReference akTarget)
    Debug.trace("Event received - OnCommandModeGiveCommand: aeCommandType = " + aeCommandType + " akTarget = " + akTarget)
endEvent

Related Pages


Additional References

View this event’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.