Scripts / AddPlayerWeapon() not working

Author
Message
Crimsonal
9
Years of Service
User Offline
Joined: 28th Aug 2015
Location:
Posted: 28th Aug 2015 03:24
whenever I try to do AddPlayerWeapon("Mace")

it never gives the player the weapon. I'm new to the guru-scripting(not new to lua) so I was just doing basic functions
Is there a different way to do it?

I tried:
weapon = weapon_name("Mace")

But it just gave me an error
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th Aug 2015 10:14
You need the entity number not the name, read the scripting guide first
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-22 05:34:57
Your offset time is: 2024-12-22 05:34:57