Entity.GetNetworkedEntity
From GMod Wiki
(Redirected from Entity.GetNWEntity)
Function | |
Syntax | Entity:GetNetworkedEntity( Var index [, Entity default] ) |
Description: | |
Returns a networked Entity reference in this entity set with Entity:SetNetworkedEntity with the given index. | |
Returns: | Entity |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetNetworkedEntity]Entity.GetNetworkedEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Can be written GetNWEntity().
- Networked data is only synchronized when it is set!
- Index can be a String or Integer .