Entity.GetParent
From GMod Wiki
Revision as of 20:01, 29 October 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax | Entity:GetParent( ) |
| Description: | |
| Returns the entity's parent entity. | |
| Returns: | Entity |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetParent]Entity.GetParent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Use Entity:IsValid() on the returned entity to see if the unit actually has a parent.