Suppose I wanted to obtain the current weapon of the player or npc I'm looking at. Then, If I'm holding the same weapon , Result=True. Else, result=false.
I suppose the code would be something like:
trace.Entity:GetActiveWeapon():GetPrintName()
But I'm continually getting errors about, Print name and Active weapon. After checking the wiki, these functions seemed to have disappeared; Replaced by, 'SWEP.PrintWeaponInfo' Any info? The page is missing in the wiki.
[url]http://wiki.garrysmod.com/?title=SWEP.PrintWeaponInfo[/url]
Sorry, you need to Log In to post a reply to this thread.