Garry's Mod Wiki


Entity:SetNWAngle( string key, Angle value )


Sets a networked angle value on the entity.

The value can then be accessed with Entity:GetNWAngle both from client and server.

Running this function clientside will only set it for the client it is called on.


1 string key
The key to associate the value with
2 Angle value
The value to set


This will set the networked angle 'direction' on all clients that is pointing straight up.

for k, v in pairs( player.GetAll() ) do v:SetNWAngle( 'direction', Angle( -90, 0, 0 ) ) end

Page Links

Special Pages



Render Time: 30ms

DB GetPage 6
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 9