Entity
Exported class in cs_script/point_script.
The base class for all entities
- Extended by
BaseModelEntity,CSObservablePoint,CSPlayerController,CSRadarPoint,CustomHudLayout,CustomPlayerCamera,PointTemplate. - Returned for 139 Hammer classnames with no more specific script type.
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2 · engine class CBaseEntity
Members
IsValid
IsValid(): booleanReturns false if the entity has been deleted.
GetAbsOrigin
GetAbsOrigin(): VectorThe position of the origin of this entity relative to the world.
GetLocalOrigin
GetLocalOrigin(): VectorThe position of the origin of this entity relative to its parent. Will be relative to the world if no parent.
GetAbsAngles
GetAbsAngles(): QAngleThe angles (pitch, yaw, and roll) of this entity relative to the world.
GetLocalAngles
GetLocalAngles(): QAngleThe angles (pitch, yaw, and roll) of this entity relative to its parent. Will be relative to the world if no parent.
GetAbsVelocity
GetAbsVelocity(): VectorThe velocity of this entity relative to the world.
GetLocalVelocity
GetLocalVelocity(): VectorThe velocity of this entity relative to its parent. Will be relative to the world if no parent.
GetAbsAngularVelocity
GetAbsAngularVelocity(): RotationVectorThe angular velocity of this entity relative to the world.
GetLocalAngularVelocity
GetLocalAngularVelocity(): RotationVectorThe angular velocity of this entity relative to its parent. Will be relative to the world if no parent.
GetEyeAngles
GetEyeAngles(): QAngleThe angles of the eyes of this entity relative to the world.
GetEyePosition
GetEyePosition(): VectorThe position of the eyes of this entity relative to the world
Teleport
Teleport(newValues: { position?: Vector, angles?: QAngle, velocity?: Vector, angularVelocity?: RotationVector }): voidUpdate the physics state of this entity.
Teleport(newPosition: Vector | null, newAngles: QAngle | null, newVelocity: Vector | null): voidDeprecated: This overload will be removed in a future update
Move
Move(newValues: { position?: Vector, angles?: QAngle, velocity?: Vector, angularVelocity?: RotationVector }): voidMove this entity without resetting the client's interpolation history.
GetMoveType
GetMoveType(): CSMoveTypeSetMoveType
SetMoveType(moveType: CSMoveType): voidGetClassName
GetClassName(): stringSee also: Entity I/O.
GetEntityName
GetEntityName(): stringSetEntityName
SetEntityName(name: string): voidGetOwner
GetOwner(): Entity | undefinedSetOwner
SetOwner(owner: Entity | undefined): voidGetParent
GetParent(): Entity | undefinedSetParent
SetParent(parent: Entity | undefined): voidGetTeamNumber
GetTeamNumber(): numberGetHealth
GetHealth(): numberSetHealth
SetHealth(health: number): voidGetMaxHealth
GetMaxHealth(): numberSetMaxHealth
SetMaxHealth(health: number): voidIsAlive
IsAlive(): booleanIsWorld
IsWorld(): booleanGet if this is the world entity
GetGroundEntity
GetGroundEntity(): Entity | undefinedGet the entity that this entity is resting on. Will be undefined if in the air.
TakeDamage
TakeDamage(takeDamage: EntityDamage): numberApply damage to this entity. Damage value will be modified by armor and hitgroup.
Kill
Kill(): voidRemove
Remove(): voidFireInput
FireInput(config: { input: string, value?: InputValue, caller?: Entity, activator?: Entity, delay?: number }): voidFire the input on this entity.
GetLocalVelcoity deprecated
GetLocalVelcoity(): VectorDeprecated: This method will be removed in a future update