🏎ïļEngine

engine namespace

Functions

get_local_player

engine.get_local_player()

Returns:

local player's entity index

number

get_player_for_user_id

engine.get_player_for_user_id(event:get_int("userid"))

number

Returns:

player's entity index

number

get_player_info

engine.get_player_info(engine.get_local_player())

player's entity index

number

players entity index (1 - 64)

Returns:

player's info

get_view_angles

local pitch, yaw = engine.get_view_angles()

Returns:

pitch

number

yaw

number

set_view_angles

engine.set_view_angles(0, 90)

pitch

number

pitch angle (-90 - 90)

yaw

number

yaw angle (0 - 360) or

(-180 - 180)

is_in_game

engine.is_in_game()

Returns:

true if you are in a game

boolean

exec

engine.exec("say hello from engine cmd")

con_command

string

console command to execute

Last updated