Skip to content

Entity

cs_script API / Entity

Exported class in cs_script/point_script.

The base class for all entities

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2 · engine class CBaseEntity

Members

IsValid

IsValid(): boolean

Returns false if the entity has been deleted.

GetAbsOrigin

GetAbsOrigin(): Vector

The position of the origin of this entity relative to the world.

GetLocalOrigin

GetLocalOrigin(): Vector

The position of the origin of this entity relative to its parent. Will be relative to the world if no parent.

GetAbsAngles

GetAbsAngles(): QAngle

The angles (pitch, yaw, and roll) of this entity relative to the world.

GetLocalAngles

GetLocalAngles(): QAngle

The angles (pitch, yaw, and roll) of this entity relative to its parent. Will be relative to the world if no parent.

GetAbsVelocity

GetAbsVelocity(): Vector

The velocity of this entity relative to the world.

GetLocalVelocity

GetLocalVelocity(): Vector

The velocity of this entity relative to its parent. Will be relative to the world if no parent.

GetAbsAngularVelocity

GetAbsAngularVelocity(): RotationVector

The angular velocity of this entity relative to the world.

GetLocalAngularVelocity

GetLocalAngularVelocity(): RotationVector

The angular velocity of this entity relative to its parent. Will be relative to the world if no parent.

GetEyeAngles

GetEyeAngles(): QAngle

The angles of the eyes of this entity relative to the world.

GetEyePosition

GetEyePosition(): Vector

The position of the eyes of this entity relative to the world

Teleport

Teleport(newValues: { position?: Vector, angles?: QAngle, velocity?: Vector, angularVelocity?: RotationVector }): void

Update the physics state of this entity.

Teleport(newPosition: Vector | null, newAngles: QAngle | null, newVelocity: Vector | null): void

Deprecated: This overload will be removed in a future update

Move

Move(newValues: { position?: Vector, angles?: QAngle, velocity?: Vector, angularVelocity?: RotationVector }): void

Move this entity without resetting the client's interpolation history.

GetMoveType

GetMoveType(): CSMoveType

SetMoveType

SetMoveType(moveType: CSMoveType): void

GetClassName

GetClassName(): string

See also: Entity I/O.

GetEntityName

GetEntityName(): string

SetEntityName

SetEntityName(name: string): void

GetOwner

GetOwner(): Entity | undefined

SetOwner

SetOwner(owner: Entity | undefined): void

GetParent

GetParent(): Entity | undefined

SetParent

SetParent(parent: Entity | undefined): void

GetTeamNumber

GetTeamNumber(): number

GetHealth

GetHealth(): number

SetHealth

SetHealth(health: number): void

GetMaxHealth

GetMaxHealth(): number

SetMaxHealth

SetMaxHealth(health: number): void

IsAlive

IsAlive(): boolean

IsWorld

IsWorld(): boolean

Get if this is the world entity

GetGroundEntity

GetGroundEntity(): Entity | undefined

Get the entity that this entity is resting on. Will be undefined if in the air.

TakeDamage

TakeDamage(takeDamage: EntityDamage): number

Apply damage to this entity. Damage value will be modified by armor and hitgroup.

Kill

Kill(): void

Remove

Remove(): void

FireInput

FireInput(config: { input: string, value?: InputValue, caller?: Entity, activator?: Entity, delay?: number }): void

Fire the input on this entity.

GetLocalVelcoity deprecated

GetLocalVelcoity(): Vector

Deprecated: This method will be removed in a future update