• Fetching a weapon without giving it?
    4 replies, posted
I need to fetch weapons for their variables such as damage and clipsize but I need to do so without creating them or at least without giving them to players or NPCs. Is there a way to do that?
[url]http://wiki.garrysmod.com/page/Player/GetWeapons[/url] Explain more? Is this what you wanted? What are you trying to do?
What I need to do is exactly like GetWeapon except it has to be done without originating from a player, or in other words, without giving it to the player. A weapon that only exists on its own in the game, in order to get info from it, such as its stats, without needing to give it to a player beforehand. A sort of... Entity:GetWeapon if you will, or perhaps just a GetWeapon("class") without being connected to a player, I'm not sure, that's why I need help.
Oh my god I love you. That's exactly what I was looking for. Thanks!
Sorry, you need to Log In to post a reply to this thread.