Entity.IsConstrained
From GMod Wiki
Function | |
Syntax | Entity:IsConstrained( ) |
Description: | |
Returns true if the entity has constraints attached to it. | |
Returns: | Boolean IsConstrained |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.IsConstrained]Entity.IsConstrained [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | If the entity gets any constraints, it will remove. |
---|---|
Used on | |
Code | function DontConstrainMe() if(self:IsConstrained( ) == true) then self:Remove() end end |
Output | The entity is now removed. |