• Setting NWBool
    2 replies, posted
How would i set another players NWBool within SWEP:PrimaryAttack()
[b][url=http://wiki.garrysmod.com/?title=Entity.SetNetworkedBool]Entity.SetNetworkedBool [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] ? [editline]11:30AM[/editline] If you want to change a NWBool on the person that you shoot at you can do something like this: [lua]local trace = self.Owner:GetEyeTrace(); if trace.Hit and ValidEntity(trace.Entity) and trace.Entity:IsPlayer() then trace.Entity:SetNWBool("name", false) end[/lua]
Haha thanks a bunch MakeR.
Sorry, you need to Log In to post a reply to this thread.