Entity.GetParent
From GMod Wiki
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.