HolyLib Wiki

gameevent.Listen

  gameevent.Listen( string name )

Description

Registers a listener for the given game event, so it can be caught using hook.Add with the event's name.

This function only exists inside HolyLib's separate holylua interface, since that interface doesn't have the normal gamemode hook system set up.
Inside the normal gamemode state, this will be GMod's original gameevent.Listen function.

Arguments

1string name

Name of the game event to listen to