Type / to search schemas

CEntityInstance

root · clientroot · server48 bytes (0x30)Source

Fields

rootnot spawnableclient

Inputs

NamePulseDescription
AddOutput(pParam: string)
—
GetAbsOrigin() → (retval: vec3_worldspace)
The entity origin (absolute)
GetOrigin() → (retval: vec3)
The entity origin (local)
GetTeamNumber() → (retval: int)
The entity team number
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.
SetScale(flValue: float)
—

rootnot spawnableserver

Inputs

NamePulseDescription
AddAttribute(param: string)
—
AddContext(param: string)
—
AddModifier(param: string)
—
AddOutput(pParam: string)
—
ChangeSubclass(param: string)
—
ChangeTeam(iTeamNum: int)
Set the entity team number
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)
—
GetAbsAngles() → (retval: qangle)
Get the world orientation of this entity.
GetAbsOrigin() → (retval: vec3_worldspace)
The entity origin (absolute).
GetAbsScale() → (retval: float)
Get the world scale of this entity.
GetAbsTransform() → (retval: transform_worldspace)
The entity origin transform (absolute).
GetAllChildren() → (retval: array<ehandle>)
Returns the children in hierarchy.
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
GetAttachmentLeft(pAttachment: string) → (retval: vec3)
Return the left vector for the attachment
GetAttachmentOrigin(pAttachment: string) → (retval: vec3_worldspace)
Return the absolute position of the entity's attachment.
GetAttachmentUp(pAttachment: string) → (retval: vec3)
Return the up vector for the attachment
GetClassName() → (retval: string)
The entity class name
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.
GetEyePosition() → (retval: vec3_worldspace)
The entity eye position.
GetForward() → (retval: vec3)
The forward vector of the entity.
GetGravityDirection() → (retval: vec3)
The current gravity direction for the entity.
GetLeft() → (retval: vec3)
The left vector of the entity.
GetLocalAngles() → (retval: qangle)
Get the local orientation of this entity.
GetLocalOrigin() → (retval: vec3)
The entity origin (local). Use when you have a parent.
GetLocalScale() → (retval: float)
Get the local scale of this entity.
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).
GetName() → (retval: entity_name)
Get the name of the 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).
GetTeamNumber() → (retval: int)
The entity team number
GetUp() → (retval: vec3)
The up vector of the entity.
GetVelocity() → (retval: vec3)
The linear velocity for the entity.
GetWorldSpaceCenter() → (retval: vec3_worldspace)
The entity worldspace center.
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.
—
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)
—
SetAbsAngles(angles: qangle)
Set the world orientation of this entity.
SetAbsOrigin(vPos: vec3_worldspace)
Set the world origin of this entity.
SetAbsScale(flScale: float)
Set the world scale of this entity.
SetDamageFilter(param: string)
—
SetKinematic(bKinematic: bool)
—
SetLocalAngles(angles: qangle)
Set the local orientation of this entity. Use when you have a parent.
SetLocalOrigin(vPos: vec3)
Set the local origin of this entity. Use when you have a parent.
SetLocalScale(flScale: float)
Set the local scale of this entity. Use when you have a parent.
SetParent(pNewParent: ehandle)
Set the parent of this entity.
SetParentAttachment(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).
SetScale(flValue: float)
—
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
TestComponentFunc(pString: string)
—
Use(param: int)
—
WasThrownByPlayer() → (retval: bool)
Returns true if the entity was recently thrown by the player

Outputs

NameDescription
OnComponentTestFunc(param: string)
—
—
—
—
—