Callbacks
How to use
-- Callbacks CANNOT be local
-- "local function on_shot_fired" will not work
function on_shot_fired(shot_info)
print(string.format("Expected damage: %i", shot_info.client_damage)
end
function on_paint()
render.rect_filled(10, 10, 110, 110, render.color("#FFFFFF"))
endCallbacks
on_paint
Usage:
on_paint_traverse
Usage:
on_frame_stage_notify
Usage:
on_setup_move
Usage:
on_run_command
Usage:
on_create_move
Usage:
on_input
Usage:
on_console_input
on_shutdown
Usage:
on_shot_registered
Usage:
on_level_init
Usage:
on_game_event
Usage:
on_xxx
Usage:
on_do_post_screen_space_events
Usage:
on_config_load
Usage:
on_config_save
Usage:
on_esp_flag
on_draw_model_execute
Player callbacks
on_player_connect
Usage:
on_player_disconnect
Usage:
on_player_spawn
Usage:
on_player_hurt
Usage:
on_player_death
Usage:
Last updated