๐ฎGameEvent_t
Describes a game event.
GetName
Method
Returns the event name.
Arguments
None.
Returns
Type
Description
string
Event name.
Example
if event:GetName() == 'player_hurt' then
-- ...
endGetBool
Method
Returns the boolean value by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
bool
Entry value. Returns false if such key was not found.
Example
GetInt
Method
Returns the integer value by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
int
Entry value. Returns 0 if such key was not found.
Example
GetFloat
Method
Returns the float value by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
float
Entry value. Returns 0.0 if such key was not found.
Example
GetString
Method
Returns the string value by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
string
Entry value. Returns nil if such key was not found.
Example
GetController
Method
If you pass a non-existent key into this function, the game might crash.
Returns the controller by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
Controller.
Example
GetPawnFromId
Method
Returns the pawn by key.
Arguments
Name
Type
Description
key
string
Entry key.
Returns
Type
Description
Pawn.
Example
Last updated