As said in the title, is it possible to grab lets say the SWEPS model name through a file? If not, how could I go about doing that?
Entity:GetModel( )
print(LocalPlayer():GetActiveWeapon():GetModel())
might be wrong. but you get the point ya?
[editline]29th December 2013[/editline]
find the entity, use getmodel() on it
[QUOTE=zerothefallen;43350026]Entity:GetModel( )
print(LocalPlayer():GetActiveWeapon():GetModel())
might be wrong. but you get the point ya?
[editline]29th December 2013[/editline]
find the entity, use getmodel() on it[/QUOTE]
I mean without the player actually having the weapon. I'm talking about the weapon itself. I know about the GetModel function but what I'm trying to accomplish is finding the model name without having the actual weapon
You can get a list of all weapon tables (SWEP tables) using this:
[code]list.Get( "Weapon" )[/code]
The rest is self explanatory.
[QUOTE=jrj996;43350100]I mean without the player actually having the weapon. I'm talking about the weapon itself. I know about the GetModel function but what I'm trying to accomplish is finding the model name without having the actual weapon[/QUOTE]
[lua]--won't work for builtin hl2 weapons
local wepTbl = weapons.Get("yourweapon")
PrintTable(wepTbl)[/lua]
[editline]30th December 2013[/editline]
Ninja'd
Thanks guys!
Sorry, you need to Log In to post a reply to this thread.