engine
Example:
Functions:
in_game
Returns if you're in game.
client_cmd
Executes the command received (similar to console).
Argument | Type | Required |
---|---|---|
cmd | string | + |
taking_screenshot
Returns if you're taking a screenshot.
player_for_userid
Returns player id related to the userid acquired from a gameevent.
Argument | Type | Required |
---|---|---|
userid | number | + |
localplayer
Returns the entity index of the local player.
max_clients
Returns maximum number of clients.
screen_size
Returns size of screen.
get_viewangles
Returns client side view angles.
set_viewangles
Sets client side view angles.
Argument | Type | Required |
---|---|---|
viewangles | + |
trace_ray
Traces a ray.
trace_ray_hull
Traces a ray hull.
Last updated