GetMenuTargetRef

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the reference from which the specified menu is derived (if currently open). The returned reference varies, depending on the menu:

1008	The container/actor inventory currently open.
1009	The actor being spoken to.
1014	The door/container being picked.
1016	The underlying, source item stack (Inventory Reference).
1023	The Map Marker on which the mouse is over.
1027	The Perk on which the mouse is over.
1035	The item being repaired (Inventory Reference).
1053	The actor being bartered with.
1055	The terminal being hacked.
1056	The current target in VATS target-selection.
1057	The terminal being used.
1058	The actor (vendor) whose skills are used for repairing.
1061	The weapon being modded (Inventory Reference).
1075	The actor whose companion-wheel is being used.
1077	The actor whose skills are used for crafting.
1083	The opponent actor in a Caravan game.
1084	The Perk on which the mouse is over.

Syntax

[help]
(menuTarget:ref) GetMenuTargetRef menuCode:int

Example

set rMenuTarget to GetMenuTargetRef 1009 

See Also