FECALITY.SHOP [API]
  • Overview
  • GETTING STARTED
    • Metadata
    • Creating scripts
    • Callbacks
    • Examples
    • Useful resources
  • DOCUMENTATION
    • Datatypes
      • entity
      • player_info
      • weapon_info
      • user_cmd
      • trace_t
      • vec3
      • cvar
      • timer
      • cfg_value
      • shot_info
      • game_event
      • material
      • material_var
      • zip
      • animator
    • Namespaces
      • Gui
      • Render
      • Engine
      • Math
      • Utilities
      • Entities
      • Database
      • Input
      • Panorama
      • Materials
      • Filesystem
      • Zip
    • Instances
      • Global Vars
      • Fecality
      • Gamerules
      • Server
Powered by GitBook
On this page
  1. DOCUMENTATION
  2. Namespaces

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

PreviousRenderNextMath

Last updated 2 years ago

​​

​​

​​

​​

​​

player's ​

players user_id. can be retrieved with their or an event

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

​​

Value
Datatype
Parameter
Datatype
Description
user_id
player_info
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
player_info
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description