GM:PlayerUse
Description
Triggered when the player presses use on an object. Continuously runs until USE is released but will not activate other Entities until the USE key is released; dependent on activation type of the Entity.
Arguments
Returns
false
if the player is not allowed to USE the entity.
Do not return true
if using a hook, otherwise other mods may not get a chance to block a player's use.
Example
The arguments will continue to be output as long as the user holds their USE key. If the user activates one object, say a door, and looks at a different object, say a different door, then the print statement will reflect the new Entity, however even when true is returned the new Entity will not be activated until the user lets go of USE and depresses it once again; this is dependent on the USE TYPE of the Entity.
Example
Prevent users from using the ammo cache on the back of a Jeep.