entity
Interact with our internally used entity system for CS2
Getting entity:
Get local player
entity.getLocalPlayer();Returns the local player as pointer.
Get DwEntityList
entity.getDwEntityList();Returns the entity list as a pointer.
Get crosshair entity
entity.getCrosshairEntity(IntPtr: localPlayer)Returns the aimed at player as an entity
About entity:
Get Health
Returns the entity's health as an integer.
Is Dead?
Returns a boolean for any entity.
Get Team
Returns the entity's team number as an integer.
Is Dormant?
Returns a boolean for any entity.
Is Scoped?
Returns a boolean for any entity.
Is Reloading?
Returns a boolean for any entity.
Is Flashed?
Returns a boolean for any entity.
Is Jumping?
Returns a boolean for any entity
Is Defusing?
Returns a boolean for any entity
Get Name
Returns a string (128 length) for any entity
Set name
Sets the entity's name but should be the local player
Speed
Returns the entity's speed as a nice integer by doing Math.Sqrt on the speed vector.
Get Weapon Index
Returns the entity's weapon index as an integer
Get Weapon Type
Returns the entity's weapon type as a lowercase string.
Get Shots Fired
Returns the current amount of shots fired while shooting as an integer
Get Punch Angle
Returns a vector for the view recoil
Get Position
Returns the X,Y,Z of the entities position, this vector is already unpacked by default and does not require Unpack
Example:
Functions:
Remove Flash
Used to remove the flash for local player typically
Last updated
Was this helpful?