impulseEntityMenu
Shows up when the user (by default) presses F2, allows the player to interact with objects using the different hooks found in General hooks.
Functions
impulseEntityMenu:AddAction(icon, name, onClick)
View source »You should use this to add options for players to interact with.
Parameters
-
icon
string
The file path to an image to use.
-
name
string
The displayed name for the interaction.
-
onClick
function
Callback for when you click it.
impulseEntityMenu:Init()
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Initializes the panel.
impulseEntityMenu:SetContainer(ent)
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Sets the container. FIXME: No hooks, uses deprecated function.
Parameters
-
ent
Entity
Container entity.
impulseEntityMenu:SetDoor(door)
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Sets the door, runs DoorMenuAddOptions.
Parameters
-
door
Entity
The door entity.
impulseEntityMenu:SetPlayer(ply)
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Sets the player, runs PlayerMenuAddOptions.
Parameters
-
ply
Entity
The player entity.
impulseEntityMenu:SetRangeEnt(ent)
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Sets the rangeEnt.
Parameters
-
ent
Entity
New rangeEnt.