Garry's Mod Wiki

GM:PlayerFireAnimationEvent

boolean GM:PlayerFireAnimationEvent( Player ply, Vector pos, Angle ang, number event, string name )

Just Added

This was just added in the latest version (2020.10.14). It might only be available on the Dev Branch right now.

Description

Called before firing clientside animation events on a player model.

See GM:PlayerHandleAnimEvent for the serverside version.

Arguments

1 Player ply
The player who has triggered the event.
2 Vector pos
Position of the effect
3 Angle ang
Angle of the effect
4 number event
The event ID of happened even. See this page.
5 string name
Name of the event

Returns

1 boolean
Return true to disable the effect

Page Links


Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 3
Generate Html 18
SaveChanges (1) 10
Render Body 0
Render Sidebar 12