Garry's Mod Wiki

ents.FireTargets

  ents.FireTargets( string target, Entity activator, Entity caller, number usetype, number value )

Description

Fires a use event.

Arguments

1 string target
Name of the target entity.
2 Entity activator
Activator of the event.
3 Entity caller
Caller of the event.
4 number usetype
Use type. See the USE enum.
5 number value
This value is passed to ENTITY:Use, but isn't used by any default entities in the engine.