[SOLVED]Throwing Knife

Posts 1–6 of 6 · Page 1 of 1
[SOLVED]Throwing Knife
Hello!
I have this code;
Code:
donateBullet() {
self setWeaponAmmoStock(level.pistol, (self getWeaponAmmoStock(level.pistol)) + 1);
}
And everytime you kill someone your pistol gets one extra bullet.
Now I want it to be that when you kill someone, you get one extra Throwing Knife.
What do I need to change?
Im not an expert but try this
Code:
donateThrowingKnife() {
self setWeaponAmmoStock(level.ThrowingKnife, (self getWeaponAmmoStock(level.ThrowingKnife)) + 1);
}
don't blame me if that is wrong or impossible. XD
Quote Originally Posted by DIOXIO View Post
Im not an expert but try this
Code:
donateThrowingKnife() {
self setWeaponAmmoStock(level.ThrowingKnife, (self getWeaponAmmoStock(level.ThrowingKnife)) + 1);
}
don't blame me if that is wrong or impossible. XD
I don't think that that's correct, but I'm not sure. Not a real modding hero..
Nvm.. got it already
Code:
self takeWeapon(self getCurrentOffhand());self _setperk("throwingknife_mp"); for(;;){self waittill("killed_enemy"); self setWeaponAmmoClip("throwingknife_mp; ", 1);}
/request Solved
/Marked as Solved
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?