Player
csgo.player
Player data type. Derives from csgo.entity. See entity_list:get_player
Functions
get_name
returns the player's name as a string
get_name( )
get_eye_pos
returns the player's eye position as a csgo.vector3
get_eye_pos( )
is_alive
returns true if the player is alive
is_alive( )
get_hitbox_pos
return a csgo.vector3 with the coordinates of the hitbox
get_hitbox_pos( hitbox )
Parameter
Data type
Description
hitbox
integer
the hitbox to get the
position of
Hitboxes
local Hitboxes =
{
Head = 0,
Neck = 1,
Pelvis = 2,
Body = 3,
Thorax = 4,
Chest = 5,
UpperChest = 6,
LeftThigh = 7,
RightThigh = 8,
LeftCalf = 9,
RightCalf = 10,
LeftFoot = 11,
RightFoot = 12,
LeftHand = 13,
RightHand = 14,
LeftUpperArm = 15,
LeftForearm = 16,
RightUpperArm = 17,
RightForearm = 18,
}
Last updated