CreateEvent

Last Updated2014-12-13
Created At2007-03-04

Creates a game event to be fired later. The Handle should not be closed via CloseHandle(). It must be closed via event.Fire() or event.Cancel().

native Event CreateEvent(const char[] name, bool force = false)

Parameters

const char[] name
Name of event.
bool 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 Value

Event Handle to event. INVALID_HANDLE is returned if the event doesn't exist or isn't being hooked (unless force is true).