HolyLib Wiki

gameevent.FireEvent

 boolean gameevent.FireEvent( IGameEvent event, boolean dontBroadcast = false )

Description

Fires the given gameevent and networks it to all players.

Arguments

1IGameEvent event

The gameevent to fire.

2boolean dontBroadcast = false

If true the gameevent won't be networked to players.

Returns

1boolean success

Returns true if the event was successfully fired.