Skip to content

engine

execute_client_cmd

engine.execute_client_cmd(command: string)

Name Type Description
command string Command to execute
Example
1
2
3
4
5
register_callback("player_death", function(event)
    if event:get_pawn("attacker") == entitylist.get_local_player_pawn() then 
        engine.execute_client_cmd("say 1")
    end
end)

play_sound

engine.play_sound(sound_name: string, volume: string)

Name Type Description
sound_name string Sound name
volume string Volume

chat_print

engine.chat_print(text: string)

Name Type Description
text string Text to print

get_level_name

engine.get_level_name()


get_netvar_offset

engine.get_netvar_offset(module_name: string, table_name: string, prop_name: string): number

Name Type Description
module_name string Module name
table_name string Name of the table
prop_name string Name of the property