Garry's Mod Wiki

Garry's Mod Wiki

  boolean, number constraint.RemoveAll( Entity ent )

Description

Attempts to remove all constraints associated with an entity

Arguments

1 Entity ent
The entity to remove constraints from

Returns

1 boolean
Whether any constraints were removed
2 number
Number of constraints removed

Example

From stools/remover.lua

-- Reload removes all constraints on the targetted entity function TOOL:Reload( trace ) if ( !IsValid( trace.Entity ) or trace.Entity:IsPlayer() ) then return false end return constraint.RemoveAll( trace.Entity ) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...