swiftlys2/docs/api/releases/features/ai/

Entity Data

versions
Counter-Strike 2›CBaseClientUIEntity
designer name: base_clientui_entity
Members (4)
enabled:boolean
dialog_layout_name:string
panel_class_name:string
panel_id:string
Inputs (22)
GetModelScale() -> float
raw: GetModelScale
Get scale of entity's model.
SetModelScale(float) -> void
raw: Script_SetModelScale
Set scale of entity's model.
ScriptLookupAttachment(cstring) -> int
raw: ScriptLookupAttachment
Get the named attachment id.
GetAttachmentOrigin(int) -> position_vector
raw: ScriptGetAttachmentOrigin
Get the attachment id's origin vector.
GetAttachmentAngles(int) -> vector
raw: ScriptGetAttachmentAngles
Get the attachment id's angles as a p,y,r vector.
GetAttachmentForward(int) -> vector
raw: ScriptGetAttachmentForward
Get the attachment id's forward vector.
SetSize(vector, vector) -> void
raw: ScriptSetSize
SetModel(cstring) -> void
raw: ScriptSetModel
GetRenderAlpha() -> int
raw: ScriptGetRenderAlpha
GetRenderAlpha(): Get the alpha modulation of this entity.
SetRenderAlpha(int) -> void
raw: ScriptSetRenderAlpha
SetRenderAlpha( int ): Set the alpha modulation of this entity.
SetRenderMode(int) -> void
raw: ScriptSetRenderMode
SetRenderMode( int ): Sets the render mode of the entity.
SetRenderColor(int, int, int) -> void
raw: ScriptSetRenderColor
SetRenderColor( r, g, b ): Sets the render color of the entity.
GetRenderColor() -> vector
raw: ScriptGetRenderColor
GetRenderColor(): Get the render color of the entity.
SetMaterialGroup(cstring) -> void
raw: ScriptSetMaterialGroup
SetMaterialGroup( string ): Set the material group of this entity.
SetMaterialGroupHash(uint32) -> void
raw: ScriptSetMaterialGroupHash
SetMaterialGroupHash( uint32 ): Set the material group hash of this entity.
GetMaterialGroupHash() -> uint32
raw: ScriptGetMaterialGroupHash
GetMaterialGroupHash(): Get the material group hash of this entity.
SetSingleMeshGroup(cstring) -> void
raw: ScriptSetSingleMeshGroup
SetSingleMeshGroup( string ): Set a single mesh group for this entity.
SetMaterialGroupMask(uint64) -> void
raw: ScriptSetMeshGroupMask
SetMaterialGroupMask( uint64 ): Set the mesh group mask of this entity.
GetMaterialGroupMask() -> uint64
raw: ScriptGetMeshGroupMask
GetMaterialGroupMask(): Get the mesh group mask of this entity.
SetBodygroupByName(cstring, int) -> void
raw: ScriptSetBodygroupByName
Sets a bodygroup by name.
SetBodygroup(int, int) -> void
raw: Script_SetBodygroup
Sets a bodygroup.
SetSkin(int) -> void
raw: Script_SetSkin
Set skin (int).