net.WriteEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax net.WriteEntity( Entity )
Where is this used?
Description:
Sends a entity object through the net library.
Returns: Nil
Part of Library: net
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Net.WriteEntity]Net.WriteEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionSends the player entity object to the client.
Used onNewerShared.png
Code
net.Start("Test") --Unique name accessed by the recipent's
    net.WriteEntity(Entity(1))
net.Send(Entity(1))
 
OutputEntity 1 will recieve their own player entity object this can be read using net.Recieve. This is not a very useful example although it is simply an example and the map contains no other entities at this time.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox