ENTITY/FireAnimationEvent

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 4: Line 4:
 
See {{HookFunction|ENTITY|HandleAnimEvent}} for the serverside version.
 
See {{HookFunction|ENTITY|HandleAnimEvent}} for the serverside version.
  
{{Note|This hook only works on "anim" and "ai" type entities.}}
+
{{Note|This hook only works on "anim", "nextbot" and "ai" type entities.}}
 
+
{{NextUpdate|"nextbot" entities can also use this hook}}
+
 
|Realm=Client
 
|Realm=Client
 
|Predicted=No
 
|Predicted=No

Latest revision as of 18:25, 19 February 2019

 ENTITY:FireAnimationEvent( )

Contents

Description

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

See ENTITY:HandleAnimEvent for the serverside version.

NOTE

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

Arguments

Vector pos

Position of the effect

Arguments

Angle ang

Angle of the effect

Arguments

number event

The event ID of happened even. See this page.

Arguments

string name

Name of the event

Returns

boolean

Return true to disable the effect
Personal tools
Navigation