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()

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Initializes the panel.

impulseEntityMenu:SetContainer(ent)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Sets the container. FIXME: No hooks, uses deprecated function.

Parameters

  • ent Entity

    Container entity.

impulseEntityMenu:SetDoor(door)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Sets the door, runs DoorMenuAddOptions.

Parameters

  • door Entity

    The door entity.

impulseEntityMenu:SetPlayer(ply)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Sets the player, runs PlayerMenuAddOptions.

Parameters

  • ply Entity

    The player entity.

impulseEntityMenu:SetRangeEnt(ent)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Sets the rangeEnt.

Parameters