[url]http://wiki.garrysmod.com/?title=SWEP.OwnerChanged[/url]
What does it do? May someone explain with examples?
"Runs when the weapon is dropped or picked up by a new player."
[code]function SWEP:OwnerChanged() print( self.Owner:Name() ) end[/code]
Prints the new owners name on pickup.
So you said when it is dropped OR picked up? so it will also print when dropped, and again when picked up?
Sorry, you need to Log In to post a reply to this thread.