⚙ïļgame_event

on_game_event

List of game events.

Functions

get_name

function on_game_event(event)
    if event:get_name() == "player_hurt" then
        print("A player was hurt")
    end
end

Usage:

Gets the name of an event.

get_int

event:get_int("userid")

key_name

string

name of key

Returns:

key_value

number

get_float

event:get_float("x")

key_name

string

name of key

Returns:

key_value

number

get_bool

event:get_bool("attackerblind")

key_name

string

name of key

Returns:

key_value

boolean

get_string

event:get_string("weapon")

key_name

string

name of key

Returns:

key_value

string

Last updated