๐ŸŽฎ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
    -- ...
end

GetBool

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

triangle-exclamation

Returns the controller by key.

Arguments

Name

Type

Description

key

string

Entry key.

Returns

Type

Description

Example


GetPawnFromId

Method

Returns the pawn by key.

Arguments

Name

Type

Description

key

string

Entry key.

Returns

Type

Description

Example

Last updated