ENTITY/FireAnimationEvent

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Changed realm)
Line 1: Line 1:
 
{{Hook
 
{{Hook
 
|Description=Called before firing animation events, such as muzzle flashes or shell ejections.
 
|Description=Called before firing animation events, such as muzzle flashes or shell ejections.
 +
 +
See also {{HookFunction|ENTITY|HandleAnimEvent}}.
  
 
{{Note|This hook only works on "anim" type entities.}}
 
{{Note|This hook only works on "anim" type entities.}}

Revision as of 15:22, 28 January 2019

 ENTITY:FireAnimationEvent( )

Contents

Description

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

See also ENTITY:HandleAnimEvent.

NOTE

This hook only works on "anim" 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