View Single Post
  #1  
Old 06-18-2013, 05:11 AM
defaultaccount defaultaccount is offline
Cassini
Join Date: Feb 2006
Location: HeLLifAX
Posts: 299
defaultaccount is on a distinguished road
Removing weapons

Hey I'm just trying to make a weapon add and remove itself from my inventory, I can use addweapon(); and removeweapon() on levels but it doesn't work inside the weapons scripts. When I put them two commands in f2 it says its a unrecognized command. thank you and sorry for posting another noob topic

also im wondering how to drop a animation for a clip gani when the gun reloads so it stays on the ground

NPC Code:


//#CLIENTSIDE

function GraalControl.onKeyDown(code, key, scan) {
if (key == "t") {
freezeplayer(this.equip);
removeweapon("Weapon/BMP");
addweapon("Weapon/BMP2");
}


Last edited by defaultaccount; 06-18-2013 at 08:18 PM..
Reply With Quote