DarkRP.Entity.IsDoor
From GMod Wiki
Revision as of 12:19, 16 November 2011 by [RV] TJjokerR (Talk | contribs)
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Gamemode Function: DarkRP.Entity.IsDoor | |
---|---|
DarkRP.Entity.IsDoor is a function that is defined in the DarkRP Gamemode and its derivatives. |
Function | |
Syntax |
Entity:IsDoor( ) Where is this used? |
Description: | |
Checks if the entity is a door. | |
Returns: | Boolean |
Part of Library: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DarkRP.Entity.IsDoor]DarkRP.Entity.IsDoor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Remove all doors. |
---|---|
Used on | |
Code | for _, ent in ipairs(ents.GetAll()) do if ent:IsDoor() == true then ent:Remove() end end |
Output | N/A |
Additional Notes
- Doors that get picked up are: func_door, func_door_rotating, prop_door_rotating and prop_dynamic.