CBaseEntity extends CEntityInstance
s
c
#
AddEffects(flagsEntityEffects): nil
s
c
#

Adds the render effect flag.
ApplyAbsVelocityImpulse(vecImpulseVector): nil
s
c
#

Apply a Velocity Impulse.
ApplyLocalAngularVelocityImpulse(angImpulseVector): nil
s
c
#

Apply an Ang Velocity Impulse.
Attribute_GetFloatValue(namestring, defaultfloat): float
s
c
#

Get float value for an entity attribute.
Attribute_GetIntValue(namestring, defaultint): int
s
c
#

Get int value for an entity attribute.
Attribute_SetFloatValue(namestring, valuefloat): nil
s
c
#

Set float value for an entity attribute.
Attribute_SetIntValue(namestring, valueint): nil
s
c
#

Set int value for an entity attribute.
DeleteAttribute(namestring): nil
s
c
#

Delete an entity attribute.
EmitSound(soundnamestring): nil
s
c
#

Plays a sound from this entity.
EmitSoundParams(soundNamestring, pitchint, volumefloat, delayfloat): nil
s
c
#

Plays/modifies a sound from this entity. changes sound if nPitch and/or flVol or flSoundTime is > 0.
EyeAngles(): QAngle
s
c
#

Get the qangles that this entity is looking at.
EyePosition(): Vector
s
c
#

Get vector to eye position - absolute coords.
FirstMoveChild(): CBaseEntity
s
c
#
FollowEntity(entityCBaseEntity, boneMergebool): nil
s
c
#
GatherCriteria(resulthandle): nil
s
c
#

Returns a table containing the criteria that would be used for response queries on this entity. This is the same as the table that is passed to response rule script function callbacks.
GetAbsOrigin(): Vector
s
c
#
GetAbsScale(): float
s
c
#
GetAngles(): QAngle
s
c
#
GetAnglesAsVector(): Vector
s
c
#

Get entity pitch, yaw, roll as a vector.
GetAngularVelocity(): Vector
s
c
#

Get the local angular velocity - returns a vector of pitch,yaw,roll.
GetBaseVelocity(): Vector
s
c
#

Get Base? velocity.
GetBoundingMaxs(): Vector
s
c
#

Get a vector containing max bounds, centered on object.
GetBoundingMins(): Vector
s
c
#

Get a vector containing min bounds, centered on object.
GetBounds(): EntityBounds
s
c
#

Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object.
GetCenter(): Vector
s
c
#

Get vector to center of object - absolute coords.
GetChildren(): [CBaseEntity]
s
c
#

Get the entities parented to this entity.
GetContext(namestring): string | float | nil
s
c
#

Looks up a context and returns it if available. May return string, float, or null (if the context isn't found).
GetForwardVector(): Vector
s
c
#

Get the forward vector of the entity.
GetHealth(): int
s
c
#

Get the health of this entity.
GetLocalAngles(): QAngle
s
c
#

Get entity local pitch, yaw, roll as a QAngle.
GetLocalAngularVelocity(): QAngle
s
c
#

Maybe local angvel.
GetLocalOrigin(): Vector
s
c
#

Get entity local origin as a Vector.
GetLocalScale(): float
s
c
#
GetLocalVelocity(): Vector
s
c
#

Get Entity relative velocity.
GetMass(): float
s
c
#

Get the mass of an entity. (returns 0 if it doesn't have a physics object).
GetMaxHealth(): int
s
c
#

Get the maximum health of this entity.
GetModelName(): string
s
c
#

Returns the name of the model.
GetMoveParent(): CBaseEntity
s
c
#

If in hierarchy, retrieves the entity's parent.
GetOrigin(): Vector
s
c
#
GetOwner(): CBaseEntity
s
c
#

Gets this entity's owner.
GetOwnerEntity(): CBaseEntity
s
c
#

Get the owner entity, if there is one.
GetRightVector(): Vector
s
c
#

Get the right vector of the entity.
GetRootMoveParent(): CBaseEntity
s
c
#

If in hierarchy, walks up the hierarchy to find the root parent.
GetSoundDuration(soundnamestring, actormodelstring): float
s
c
#

Returns float duration of the sound. Takes soundname and optional actormodelname.
GetTeam(): DOTATeam_t
s
c
#

Get the team number of this entity.
GetTeamNumber(): DOTATeam_t
s
c
#

Get the team number of this entity.
GetUpVector(): Vector
s
c
#

Get the up vector of the entity.
GetVelocity(): Vector
s
c
#
HasAttribute(namestring): bool
s
c
#

See if an entity has a particular attribute.
IsAlive(): bool
s
c
#

Is this entity alive?
IsBaseNPC(): bool
s
c
#

Is this entity an CDOTA_BaseNPC?
IsNPC(): bool
s
c
#

Is this entity an CAI_BaseNPC?
IsPlayer(): bool
s
c
#

Is this entity a player?
Kill(): nil
s
c
#
NextMovePeer(): CBaseEntity
s
c
#
OverrideFriction(durationfloat, frictionfloat): nil
s
c
#

Takes duration, value for a temporary override.
PrecacheScriptSound(soundnamestring): nil
s
c
#

Precache a sound for later playing.
RemoveEffects(flagsEntityEffects): nil
s
c
#

Removes the render effect flag.
SetAbsAngles(pitchfloat, yawfloat, rollfloat): nil
s
c
#

Set entity pitch, yaw, roll by component.
SetAbsOrigin(originVector): nil
s
c
#
SetAbsScale(scalefloat): nil
s
c
#
SetAngles(pitchfloat, yawfloat, rollfloat): nil
s
c
#

Set entity pitch, yaw, roll by component.
SetAngularVelocity(pitchVelfloat, yawVelfloat, rollVelfloat): nil
s
c
#

Set the local angular velocity - takes float pitch,yaw,roll velocities.
SetConstraint(posVector): nil
s
c
#

Set the position of the constraint.
SetContext(namestring, valuestring, durationfloat): nil
s
c
#

Store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set 0 to mean 'forever').
SetContextNum(namestring, valuefloat, durationfloat): nil
s
c
#

Store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set 0 to mean 'forever').
SetContextThink(contextNamestring, thinkFunc(entityCBaseEntity) float | nil | nil, intervalfloat): nil
s
c
#

Set a think function on this entity.
SetEntityName(namestring): nil
s
c
#

Set the name of an entity.
SetForwardVector(vVector): nil
s
c
#

Set the orientation of the entity to have this forward vector.
SetFriction(frictionfloat): nil
s
c
#

Set PLAYER friction, ignored for objects.
SetGravity(gravityfloat): nil
s
c
#

Set PLAYER gravity, ignored for objects.
SetHealth(healthint): nil
s
c
#

Set the health of this entity.
SetLocalAngles(pitchfloat, yawfloat, rollfloat): nil
s
c
#

Set entity local pitch, yaw, roll by component.
SetLocalOrigin(originVector): nil
s
c
#

Set entity local origin from a Vector.
SetLocalScale(scalefloat): nil
s
c
#
SetMass(massfloat): nil
s
c
#

Set the mass of an entity. (does nothing if it doesn't have a physics object).
SetMaxHealth(amtint): nil
s
c
#

Set the maximum health of this entity.
SetOrigin(vVector): nil
s
c
#
SetOwner(ownerCBaseEntity): nil
s
c
#

Sets this entity's owner.
SetParent(parentCBaseEntity, attachmentnamestring): nil
s
c
#

Set the parent for this entity.
SetTeam(teamNumDOTATeam_t): nil
s
c
#
SetVelocity(vecVelocityVector): nil
s
c
#
StopSound(soundnamestring): nil
s
c
#

Stops a named sound playing from this entity.
TakeDamage(damageInfoCTakeDamageInfo): int
s
c
#

Apply damage to this entity. Use CreateDamageInfo() to create a damageinfo object.
TransformPointEntityToWorld(pointVector): Vector
s
c
#

Returns the input Vector transformed from entity to world space.
TransformPointWorldToEntity(pointVector): Vector
s
c
#

Returns the input Vector transformed from world to entity space.
Trigger(): nil
s
c
#

Fires off this entity's OnTrigger responses.
ValidatePrivateScriptScope(): nil
s
c
#

Validates the private script scope and creates it if one doesn't exist.