cw.entity class
Defines the cw.entity library, helpers for entities in general and for doors, ragdolls, property and item entities
in particular.
The shared part classifies entities and checks lines of sight. The server part manages doors (names, text, parents,
ownability, opening and blasting them), tracks which character owns an entity, and spawns cw_item, cw_cash and
cw_shipment entities. The client part fetches the item of an item entity over the FetchItemData message and
works out where door text is drawn.
Summary
Methods
cw_cash entity.cw_item entity.cw_shipment entity holding a batch of items.env_entity_dissolver.FetchItemData Cable message.cw.entity:FetchItemData.EntityMenuOption Cable message.cw.entity:SetStartAngles.cw.entity:SetStartPosition.chair or seat.cw.entity:Decay.false and shown with no text.hidden.prop_physics or prop_physics_multiplayer.prisoner, as prisoner pod vehicles do.false.hidden.Player networked entity.cw.entity:ReturnCollisionGroup.Methods
cw.entity:BashInDoor(entity, eBasher)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:694Bashes a closed door open, away from the entity bashing it.
The door opens fast and becomes non-solid to players until it stops overlapping anything.
Parameters
- entity Entity The door
- eBasher Entity The entity bashing the door
cw.entity:BelongsToAnotherCharacter(player, entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1465Returns whether an entity belongs to another character of the same player.
Parameters
- player Player The player
- entity Entity The entity
Returns
- Boolean Whether the player owns it with a character other than the current one
cw.entity:BlastDownDoor(entity, force, attacker)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:544Blasts a door off its hinges, replacing it with a physics prop that decays after five minutes.
The door is unlocked and made invisible and non-solid, its Combine lock explodes and its breach
entity is breached. The prop is pushed away from the attacker, or by force when there is no
attacker. The door is restored after five minutes.
Parameters
- entity Entity The door
- force Vector optional, defaults to
nilForce applied to the prop - attacker Entity optional, defaults to
nilThe entity that blasted the door
cw.entity:CalculateDoorTextPosition(door, reversed)
client gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1563Calculates where to draw the text on both faces of a door.
Traces onto the door's thinnest side, and retries from the other side when the trace hits the world.
Parameters
- door Entity The door
- reversed Boolean optional, defaults to
nilWhether this is the retry from the other side
Returns
- Map The
position,angles,positionBack,anglesBack,widthandhitWorldof the text
cw.entity:CanSeeEntity(entity, target, iAllowance, tIgnoreEnts)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:242Returns whether the centre of an entity is visible from the centre of another.
Parameters
- entity Entity The entity looking
- target Entity The entity to look at
- iAllowance Number optional, defaults to
0.75Fraction of the trace that must be clear, from0to1 - tIgnoreEnts List<Entity> optional, defaults to
nilExtra entities the trace ignores; any other non-nilvalue ignores them all
Returns
- Boolean
truewhen visible,nilotherwise
See also
cw.entity:CanSeeNPC(entity, target, iAllowance, tIgnoreEnts)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:213Returns whether an NPC's shoot position is visible from the centre of an entity.
Parameters
- entity Entity The entity looking
- target NPC The NPC to look at
- iAllowance Number optional, defaults to
0.75Fraction of the trace that must be clear, from0to1 - tIgnoreEnts List<Entity> optional, defaults to
nilExtra entities the trace ignores; any other non-nilvalue ignores them all
Returns
- Boolean
truewhen visible,nilotherwise
See also
cw.entity:CanSeePlayer(entity, target, iAllowance, tIgnoreEnts)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:227Returns whether a player and an entity can see each other.
Visible when the player is looking straight at the entity, or when the player's shoot position is visible from the centre of the entity.
Parameters
- entity Entity The entity looking
- target Player The player to look at
- iAllowance Number optional, defaults to
0.75Fraction of the trace that must be clear, from0to1 - tIgnoreEnts List<Entity> optional, defaults to
nilExtra entities the trace ignores; any other non-nilvalue ignores them all
Returns
- Boolean
truewhen visible,nilotherwise
See also
cw.entity:CanSeePosition(entity, position, iAllowance, tIgnoreEnts)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:202Returns whether a position is visible from the centre of an entity.
Traces against solid, opaque and moveable contents, hitboxes and monsters, and counts the position as visible when the trace gets far enough.
Parameters
- entity Entity The entity looking
- position Vector The position to look at
- iAllowance Number optional, defaults to
0.75Fraction of the trace that must be clear, from0to1 - tIgnoreEnts List<Entity> optional, defaults to
nilExtra entities the trace ignores; any other non-nilvalue ignores them all
Returns
- Boolean
truewhen visible,nilotherwise
Takes an entity away from its owner, whether the owner is online or not.
Parameters
- entity Entity The entity
cw.entity:CopyOwner(entity, target)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1452Gives an entity the same owner as another entity.
Parameters
- entity Entity The entity to copy the owner from
- target Entity The entity to give the owner to
cw.entity:CreateCash(ownerObj, cash, position, angles)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1326Spawns a cw_cash entity.
Does nothing when cash is disabled in the config, or when the amount is not a finite number that rounds to at least one.
The owner is either a player or, for offline owners, a table with a character key and the
player's uniqueID.
Parameters
- ownerObj Player The owner, or a
MapwithkeyanduniqueID; no owner whennil - cash Number Amount of cash, rounded
- position Vector Where to spawn it
- angles Angle optional, defaults to
nilAngles of the entity
Returns
- Entity The cash entity, or
nilwhen cash is disabled, the amount is invalid or it failed to spawn
cw.entity:CreateItem(ownerObj, itemTable, position, angles)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1404Spawns an item as a cw_item entity.
Item definitions and unique IDs get a new instance. Calls the item's OnEntitySpawned and
enables its bodyGroup on the entity.
cw.entity:CreateItem(player, 'ration', player:GetEyeTraceNoCursor().HitPos)
Parameters
- ownerObj Player The owner, or a
MapwithkeyanduniqueID; no owner whennil - itemTable Item The item instance or definition, or a unique ID string
- position Vector Where to spawn it
- angles Angle optional, defaults to
nilAngles of the entity
Returns
- Entity The item entity, or
nilwhenitemTableisnilor not an existing item
cw.entity:CreateShipment(ownerObj, uniqueID, batch, position, angles)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1367Spawns a cw_shipment entity holding a batch of items.
Parameters
- ownerObj Player The owner, or a
MapwithkeyanduniqueID; no owner whennil - uniqueID String Unique ID of the item
- batch Number How many items the shipment holds
- position Vector Where to spawn it
- angles Angle optional, defaults to
nilAngles of the entity
Returns
- Entity The shipment entity
cw.entity:Decay(entity, seconds, Callback)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1308On the server
Fades an entity out over time and removes it.
The entity is also detached from its player. Calling it again on a decaying entity restarts the fade from the current alpha.
cw.entity:Decay(ragdoll, 300, function()
print('The ragdoll has decayed.')
end)
Parameters
- entity Entity The entity
- seconds Number Roughly how many seconds the fade takes
- Callback Function optional, defaults to
nilCalled just before the entity is removed
On the client
Fades a clientside entity out over time and removes it.
Calling it again on a decaying entity restarts the fade from the current alpha.
Parameters
- entity Entity The entity
- seconds Number Roughly how many seconds the fade takes
- Callback Function optional, defaults to
nilCalled just before the entity is removed
Defined in
cw.entity:Disintegrate(entity, delay, velocity, Callback)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1230Disintegrates an entity: makes it non-solid, freezes it, plays a removal effect and decays it.
When a velocity is given, the entity is pushed first and frozen up to a second later.
Parameters
- entity Entity The entity
- delay Number Seconds the decay takes
- velocity Vector optional, defaults to
nilVelocity added to the entity or each ragdoll bone - Callback Function optional, defaults to
nilCalled just before the entity is removed
See also
cw.entity:Dissolve(entity, dissolveType, iRemoveDelay, attacker)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:476Dissolves an entity with an env_entity_dissolver.
Parameters
- entity Entity The entity to dissolve
- dissolveType Number Dissolve effect, the dissolver's
dissolvetypekey value - iRemoveDelay Number optional, defaults to
nilSeconds after which the entity is removed; it is not removed whennil - attacker Entity optional, defaults to
nilEntity set as the dissolver's physics attacker
Returns
- Entity The dissolver, already removed
cw.entity:DropItemsAndCash(inventory, cash, position, entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:801Spawns every item of an inventory and an amount of cash at a position.
The items are removed from the inventory table as they are dropped.
Parameters
- inventory Inventory The items to drop
- cash Number Amount of cash to drop; none when
nilor not positive - position Vector Where to drop them
- entity Entity optional, defaults to
nilEntity whose ownership the item entities get, copied withcw.entity:CopyOwner
Requests the item instance of an entity from the server over the FetchItemData Cable message.
Requests are sent at most every four seconds per entity. The reply creates the instance, after
which cw.entity:HasFetchedItemData returns true and cw.entity:FetchItemTable returns it.
Parameters
- entity Entity The item entity or vehicle
Returns the item instance received for an entity with cw.entity:FetchItemData.
Parameters
- entity Entity The item entity
Returns
- Item The item instance, or
nilwhen not fetched yet
cw.entity:ForceMenuOption(entity, option, arguments)
client gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1646Runs an entity menu option on the server over the EntityMenuOption Cable message.
Parameters
- entity Entity The entity
- option String Name of the option
- arguments Any Arguments of the option, such as the action to run
Returns the child doors of a door.
Parameters
- door Entity The door
Returns
- Map<Entity> The children, indexed by themselves
Returns the doors that existed on the map when the server started.
Returns
- Map<Entity> The doors indexed by entity index
Returns a door's name.
Parameters
- entity Entity The door
Returns
- String The name, or
''when not set
Returns the parent of a door.
Parameters
- door Entity The door
Returns
- Entity The parent door, or
nilwhen it has none
Returns a door and the doors next to it that form a double door.
Partners have the same class, model and skin, sit 90 to 100 units away at the same height and face another direction.
Parameters
- entity Entity The door
Returns
- List<Entity> The door followed by its partners
Returns a door's state from its save table.
Parameters
- entity Entity The door
Returns
- Number A
DOOR_STATE_*enum,DOOR_STATE_CLOSEDwhen unknown
Returns the text displayed on a door.
Parameters
- entity Entity The door
Returns
- String The text, or
''when not set
cw.entity:GetMuzzlePos(weapon, attachment)
client gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:20Returns the position and angles of a weapon's muzzle attachment.
When the weapon is carried by the local player and seen in first person, the attachment is read from the viewmodel instead of the world model.
Parameters
- weapon Weapon The weapon
- attachment Number optional, defaults to
1Index of the attachment
Returns
- Vector The muzzle position
- Angle The muzzle angles; the weapon's own position and angles when it has no such attachment, the world origin when the weapon is invalid
cw.entity:GetOwner(entity, bAnyCharacter)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1531On the server
Returns the player that owns an entity.
Parameters
- entity Entity The entity
- bAnyCharacter Boolean optional, defaults to
nilReturn the owner even when the entity belongs to another of their characters
Returns
- Player The owner, or
nilwhen it is not online or on the owning character
On the client
Returns the player that owns an entity, if its ownership is networked.
Parameters
- entity Entity The entity
- bAnyCharacter Boolean optional, defaults to
nilReturn the owner even when the entity belongs to another of their characters
Returns
- Player The owner, or
nilwhen unknown or not on the owning character
Defined in
cw.entity:GetPelvisPosition(entity)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:147Returns the position of an entity's pelvis bone, such as a ragdoll's.
Parameters
- entity Entity The entity
Returns
- Vector The pelvis position, or the entity's position when it has no pelvis bone
Returns the player an entity belongs to, such as a player's ragdoll.
Parameters
- entity Entity The entity
Returns
- Player The player set with
cw.entity:SetPlayer, the entity itself when it is a player, ornil
cw.entity:GetStartAngles(entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1154Returns the angles stored with cw.entity:SetStartAngles.
Parameters
- entity Entity The entity
Returns
- Angle The start angles, or
nil
cw.entity:GetStartPosition(entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1168Returns the position stored with cw.entity:SetStartPosition.
Parameters
- entity Entity The entity
Returns
- Vector The start position, or
nil
cw.entity:HasFetchedItemData(entity)
client gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:385Returns whether the item data of an item entity has been received from the server.
Parameters
- entity Entity The item entity
Returns
- Boolean Whether the item data has been fetched
See also
On the server
Returns whether an entity is owned by a character.
Parameters
- entity Entity The entity
Returns
- Boolean Whether the entity has an owner
On the client
Returns whether an entity is owned by a character, through its Owned networked boolean.
Parameters
- entity Entity The entity
Returns
- Boolean Whether the entity has an owner
Defined in
Returns whether an entity's model path contains chair or seat.
Parameters
- entity Entity The entity to check
Returns
- Boolean
truewhen it is a chair,nilotherwise
Returns whether an entity is fading out to be removed by cw.entity:Decay.
Parameters
- entity Entity The entity to check
Returns
- Boolean Whether the entity is decaying; the decay timer's ID string when it is,
nilotherwise
Returns whether an entity is a door.
Doors are func_door, func_door_rotating, prop_door_rotating and func_movelinear
entities, and prop_dynamic entities whose model path contains door.
Parameters
- entity Entity The entity to check
Returns
- Boolean
truewhen the entity is a door,nilotherwise
Returns whether a door is a false door: unownable, named false and shown with no text.
Parameters
- entity Entity The door
Returns
- Boolean Whether the door is false
See also
Returns whether a door is hidden: unownable and named hidden.
Parameters
- entity Entity The door
Returns
- Boolean Whether the door is hidden
See also
Returns whether a door is locked.
Parameters
- entity Entity The door
Returns
- Boolean Whether the door's save table says it is locked
Returns whether a door has child doors.
Parameters
- door Entity The door
Returns
- Boolean Whether the door is a parent
cw.entity:IsDoorUnownable(entity)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:251Returns whether a door cannot be bought.
Parameters
- entity Entity The door
Returns
- Boolean The door's
Unownablenetworked boolean
Returns whether a door cannot be sold by its owner.
Parameters
- door Entity The door
Returns
- Boolean The door's
unsellablefield
cw.entity:IsInBox(entity, minimum, maximum)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:128Returns whether an entity is inside an axis-aligned box.
The shoot position is used for players and NPCs, the entity position for anything else.
Parameters
- entity Entity The entity to check
- minimum Vector One corner of the box
- maximum Vector The opposite corner of the box
Returns
- Boolean Whether the entity is inside the box
Returns whether players can pick up and interact with an entity.
Frozen or pickup-protected props, NPCs, players, dynamic props, frozen physboxes, other func_
brush entities and doors are not interactable.
Parameters
- entity Entity The entity to check
Returns
- Boolean Whether the entity is interactable
Returns whether an entity was created by the map.
Parameters
- entity Entity The entity
Returns
- Boolean Whether it is a map entity
cw.entity:IsPhysicsEntity(entity)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:348Returns whether an entity is a prop_physics or prop_physics_multiplayer.
Parameters
- entity Entity The entity to check
Returns
- Boolean
truewhen it is a physics prop,nilotherwise
cw.entity:IsPlayerRagdoll(entity)
shared gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:288Returns whether an entity is the ragdoll of a ragdolled player.
Parameters
- entity Entity The entity to check
Returns
- Boolean
truewhen the entity is its player's current ragdoll,nilotherwise
Returns whether an entity's model path contains prisoner, as prisoner pod vehicles do.
Parameters
- entity Entity The entity to check
Returns
- Boolean
truewhen it is a pod,nilotherwise
cw.entity:MakeFlushToGround(entity, position, normal)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1218Moves an entity so its nearest point rests on a surface.
Parameters
- entity Entity The entity
- position Vector Point on the surface
- normal Vector Normal of the surface
cw.entity:MakeIntoRagdoll(entity, force, overrideVelocity, overrideAngles)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:831Creates a ragdoll copying an entity's model, appearance, pose and velocity.
The ragdoll's angles are always set from the entity's angles, so overrideAngles has no
effect. The head gets twice the velocity and force. Burning entities give a burning ragdoll.
Parameters
- entity Entity The entity to copy
- force Vector optional, defaults to
nilForce applied to each bone - overrideVelocity Vector optional, defaults to
nilVelocity given to the bones instead of 1.5 times the entity's - overrideAngles Angle optional, defaults to
nilAngles to give the ragdoll
Returns
- Entity The ragdoll
cw.entity:MakeSafe(entity, bPhysgunProtect, tToolProtect, bFreezeEntity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:728Protects an entity from the physics gun and tools and optionally freezes it.
cw.entity:MakeSafe(entity, true, { 'remover', 'weld' }, true)
Parameters
- entity Entity The entity
- bPhysgunProtect Boolean optional, defaults to
nilPrevent the physics gun from picking it up - tToolProtect List<String> optional, defaults to
nilTool modes that cannot be used on it; any other non-nilvalue blocks every tool - bFreezeEntity Boolean optional, defaults to
nilDisable the entity's motion
cw.entity:OpenDoor(entity, delay, bUnlock, bSound, origin, fSpeed)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:657Opens a door after a delay.
Dynamic prop doors play their open animation and close again after five seconds. Rotating prop
doors open away from origin when it is given.
Parameters
- entity Entity The door
- delay Number Seconds before the door opens
- bUnlock Boolean optional, defaults to
nilUnlock the door first - bSound Boolean optional, defaults to
nilPlay an impact sound when unlocking - origin Vector optional, defaults to
nilPosition the door opens away from - fSpeed Number optional, defaults to
nilUnused
cw.entity:QueryProperty(entity, key, default)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1497Returns a field of an entity's property table.
The table is set by cw.player:GiveProperty and holds key, owner, owned, uniqueID,
networked and removeDelay.
Parameters
- entity Entity The entity
- key String Name of the field
- default Any optional, defaults to
nilValue returned when the field or the table is not set
Returns
- Any The field's value, or
default
cw.entity:ReturnCollisionGroup(entity, collisionGroup)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1183Restores an entity's collision group once it no longer overlaps anything.
Retries every second while the entity's physics object is penetrating something.
Parameters
- entity Entity The entity
- collisionGroup Number A
COLLISION_GROUP_*enum
cw.entity:SetChairAnimations(entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1095Gives a chair vehicle the key values and members of its vehicle list entry, so players sit in it correctly.
Only acts on prop_vehicle_prisoner_pod entities without a vehicle table. Some stock chair
models are first replaced by their models/nova equivalents.
Parameters
- entity Entity The chair vehicle
Returns
- Boolean
truewhen a vehicle entry was applied,nilotherwise
cw.entity:SetDoorFalse(entity, isFalse)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:981Sets whether a door is a false door, an unownable door named false.
Parameters
- entity Entity The door
- isFalse Boolean Whether the door should be false;
falsemakes it ownable and clears its name
cw.entity:SetDoorHidden(entity, hidden)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:996Sets whether a door is hidden, an unownable door named hidden.
Parameters
- entity Entity The door
- hidden Boolean Whether the door should be hidden;
falsemakes it ownable and clears its name
cw.entity:SetDoorName(entity, name)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1082Sets a door's name.
Parameters
- entity Entity The door
- name String The name;
nilclears it
cw.entity:SetDoorParent(door, parent)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:903Sets the parent of a door, or removes it.
Children of the door are unparented first, and the door's shared access and text are reset. Parents can share their access and text with their children.
Parameters
- door Entity The door
- parent Entity The parent door; anything that is not a valid door removes the parent
See also
cw.entity:SetDoorSpeedFast(entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:518Makes a door move three times faster for one second.
Does nothing for entities that are not doors or have no speed, or when used on the same door within two seconds.
Parameters
- entity Entity The door
cw.entity:SetDoorText(entity, text)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1057Sets the text displayed on a door, and on its children when it shares its text.
Text containing "this door can be purchased" (ignoring case and spaces) is rejected.
Parameters
- entity Entity The door
- text String The text;
nilclears it
cw.entity:SetDoorUnownable(entity, unownable)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:962Sets whether a door can be bought.
Making a door unownable takes it from its owner.
Parameters
- entity Entity The door
- unownable Boolean Whether the door should be unownable
cw.entity:SetMapEntity(entity, isMapEntity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1203Sets whether an entity was created by the map.
Parameters
- entity Entity The entity
- isMapEntity Boolean Whether it is a map entity
cw.entity:SetPlayer(entity, player)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1290Sets the player an entity belongs to, through its Player networked entity.
Parameters
- entity Entity The entity
- player Player The player, or
NULLto clear it
See also
cw.entity:SetPropertyVar(entity, key, value)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1485Sets a field of an owned entity's property table.
Does nothing for entities without an owner.
Parameters
- entity Entity The entity
- key String Name of the field
- value Any The new value
cw.entity:SetStartAngles(entity, angles)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1147Stores the angles an entity started with.
Parameters
- entity Entity The entity
- angles Angle The start angles
cw.entity:SetStartPosition(entity, position)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1161Stores the position an entity started at.
Parameters
- entity Entity The entity
- position Vector The start position
cw.entity:StatueRagdoll(entity, forceLimit)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:755Welds every bone of a ragdoll together so it holds its pose like a statue.
The welds are stored in entity.cwStatueInfo.Welds and a glass effect plays on each bone.
Parameters
- entity Entity The ragdoll
- forceLimit Number optional, defaults to
0Force a weld takes before breaking;0never breaks
cw.entity:StopCollisionGroupRestore(entity)
server gamemodes/catwork/gamemode/core/libraries/sh_entity.lua:1174Cancels a pending collision group restore started by cw.entity:ReturnCollisionGroup.
Parameters
- entity Entity The entity