Garry's Mod Wiki

Garry's Mod Wiki

  boolean ENTITY:FireAnimationEvent( Vector pos, Angle ang, number event, string name )

Description

Called before firing clientside animation events, such as muzzle flashes or shell ejections.

See ENTITY:HandleAnimEvent for the serverside version.

This hook only works on "anim", "nextbot" and "ai" type entities.

Arguments

1 Vector pos
Position of the effect
2 Angle ang
Angle of the effect
3 number event
The event ID of happened even. See this page. Only event IDs above 5000 will appear in this hook. (Are considered the "new" system in-engine)
4 string name
Name of the event

Returns

1 boolean
Return true to disable the effect

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...