Difference between revisions of "OnMenuItemRun - Terminal"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Iceburg333
(Created page with "Category:Scripting Category:Papyrus Category:Events '''Member of:''' Terminal Script Event called when the player selects a terminal menu item. == Syntax == <so...")
 
imported>Qazaaq
(Added note about none reference argument and Pipboy)
 
Line 12: Line 12:


== Parameters ==
== Parameters ==
*auiMenuItemID: The ID of the menu item that was run
*auiMenuItemID: The ID of the menu item that was run.
*akTerminalRef: The terminal ref initially activated
*akTerminalRef: The terminal reference initially activated. This will be none if activated from the players Pipboy.


== Examples ==
== Examples ==

Latest revision as of 22:14, 30 March 2019

Member of: Terminal Script

Event called when the player selects a terminal menu item.

Syntax[edit | edit source]

Event OnMenuItemRun(int auiMenuItemID, ObjectReference akTerminalRef)

Parameters[edit | edit source]

  • auiMenuItemID: The ID of the menu item that was run.
  • akTerminalRef: The terminal reference initially activated. This will be none if activated from the players Pipboy.

Examples[edit | edit source]

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

Notes[edit | edit source]

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

See Also[edit | edit source]