Background for Fallout 4
Member of the Terminal script
eventOnMenuItemRun(intauiMenuItemID, ObjectReferenceakTerminalRef)

Description

Wiki Description

Event called when the player selects a terminal menu item.

Documentation Comment

Event called when a terminal menu item is run, with the specified target and terminal owner (in parallel with the fragment)


Caveats

CK Wiki - Notes

  • This event runs in parallel with the terminal menu item fragment.

Parameters

  1. intauiMenuItemID

    CK Wiki Description

    The ID of the menu item that was run.

  2. ObjectReferenceakTerminalRef

    CK Wiki Description

    The terminal reference initially activated. This will be none if activated from the players Pipboy.


Examples

Event OnMenuItemRun(int auiMenuItemID, ObjectReference akTerminalRef)
  Debug.Trace("Player selected menu item" + auiMenuItemID + " on " + akTerminalRef)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Terminal

event OnMenuItemRun(int auiMenuItemID, ObjectReference akTerminalRef)
    Debug.trace("Event received - OnMenuItemRun: auiMenuItemID = " + auiMenuItemID + " akTerminalRef = " + akTerminalRef)
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.