mouse_ent
Pointer of the entity the mouse cursor is over (if any).
Type:
ENTITY*, read-only
Example:
function maus_entkill()
{
if(mouse_left == 1) // left Mousebutton pressed?
{
if(mouse_ent)
{
ptr_remove(mouse_ent); // remove clicked Entity
}
}
}
See also:
mouse_mode, mouse_range,
mouse_panel
► latest
version online