- Derived classes
- C_BaseEntityCBaseEntity
- Used by fields
- CGameSceneNodem_pOwnerCGameSceneNodem_pOwner
- Metadata
- Also in
- Counter-Strike 2Dota 2Half-Life: Alyxdiffers
Fields
rootnot spawnableclient
Inputs
NamePulseDescription
AddOutput(pParam: string)
—
IsMotionEnabled() → (retval: bool)
Returns true if the entity is motion-enabled (i.e. its ideal motion type is dynamic). Note that the entity may still end up keyframed in some cases, e.g. if it's hierarchically attached to another keyframed entity.
rootnot spawnableserver
Inputs
NamePulseDescription
AddAttribute(param: string)
—
AddContext(param: string)
—
AddModifier(param: string)
—
AddOutput(pParam: string)
—
ChangeSubclass(param: string)
—
ClassMatches(entityType: string) → (retval: bool)
Check the type of an entity. Includes base classes.
ClassNameMatches(pClassName: string) → (retval: bool)
Returns true if the entity's class matches the one given (no wildcard support)
—
—
DispatchResponse(param: string)
—
—
FindModelConfigEntity(pConfigEntityName: string) → (retval: ehandle)
Returns the model config entity attached to this entity by the specified name
—
—
—
—
FollowEntity(param: string)
—
GetAttachmentAngle(pAttachment: string) → (retval: qangle)
Return the Angle of the entity's attachment.
GetAttachmentForward(pAttachment: string) → (retval: vec3)
Return the forward vector for the attachment
GetAttachmentOrigin(pAttachment: string) → (retval: vec3_worldspace)
Return the absolute position of the entity's attachment.
GetDebugString() → (retval: string)
Get a debug string identifying the entity. Safe for null entities. This string cannot be used for looking up the entity. Should not be used for anything except logging.
GetLocalTransform() → (retval: transform)
The entity origin transform (local). Use when you have a parent.
GetMoveParent() → (retval: ehandle)
Get the entity's move parent (may not be the top level movement entity).
GetRootMoveParent() → (retval: ehandle)
Get the root move parent for the entity (traverses the hierarchy until it reaches the ancestor that controls the final transform).
IsModel(strModel: string) → (retval: bool)
Returns true if the entity is using the given model, false otherwise
IsMotionEnabled() → (retval: bool)
Returns true if the entity is motion-enabled (i.e. its ideal motion type is dynamic). Note that the entity may still end up keyframed in some cases, e.g. if it's hierarchically attached to another keyframed entity.
Kill()
—
NameMatches(pNameOrWildcard: string) → (retval: bool)
Returns true if the entity name matches the given string. Wildcards are accepted.
RemoveAttribute(param: string)
—
RemoveContext(param: string)
—
RemoveModifier(param: string)
—
SetDamageFilter(param: string)
—
SetParentAttachment(param: string)
—
SetParentAttachmentMaintainOffset(param: string)
—
SetParentMaintainOffset(pNewParent: ehandle, sAttachBoneName: string)
Set the parent of this entity and maintain offsets.
SetParentWithOffset(pNewParent: ehandle, sAttachBoneName: string, xAttachOffset: transform)
Set the parent of this entity (with offset).
SetTeam(param: int)
—
TeamNum(param: int)
—
TeleportToPoint(vPosition: vec3_worldspace)
Teleport the given entity to the specified position and orientation
TeleportToTransform(xTransform: transform_worldspace)
Teleport the given entity to the specified transform
Use(param: int)
—