Added paramater to CreateEvent to determine whether or not creation should be forced even if nothing is hooking/listening to the event.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40719
This commit is contained in:
@@ -81,9 +81,12 @@ native UnhookEvent(const String:name[], EventHook:callback, EventHookMode:mode=E
|
||||
* Creates a game event to be fired later.
|
||||
*
|
||||
* @param name Name of event.
|
||||
* @return Handle to event or INVALID_HANDLE if event doesn't exist.
|
||||
* @param force If set to true, this forces the event to be created even if it's not being hooked.
|
||||
* Note that this will not force it if the event doesn't exist at all.
|
||||
* @return Handle to event. INVALID_HANDLE is returned if the event doesn't exist or isn't
|
||||
being hooked (unless force is true).
|
||||
*/
|
||||
native Handle:CreateEvent(const String:name[]);
|
||||
native Handle:CreateEvent(const String:name[], bool:force=false);
|
||||
|
||||
/**
|
||||
* Fires a game event.
|
||||
|
||||
Reference in New Issue
Block a user