ENTITY/HandleAnimEvent

From Garry's Mod
Jump to: navigation, search
 ENTITY:HandleAnimEvent( )

Contents

Description

Called before firing serverside animation events, such as weapon reload, drawing and holstering for NPCs, scripted sequences, etc.

See ENTITY:FireAnimationEvent for the clientside version.

NOTE

This hook only works on "anim" type entities.


Next Update Change

"nextbot" entities have support for this too.

Arguments

number event

The event ID of happened even. See this page.

Arguments

number eventTime

The absolute time this event occurred using CurTime.

Arguments

number cycle

The frame this event occurred as a number between 0 and 1.

Arguments

number type

Event type. See the Source SDK.

Arguments

string options

Name or options of this event.
Personal tools
Navigation