03-20-2012, 18:19
Hey, I just recently started modding (actually yesterday), and I've been searching around for a while to find a method that lets me for instance give the player full ammo on his weapon whenever he/she kills someone. I read something about "onPlayerKilled()", tried searching in _rank.gsc and couldn't find it, so I wrote it myself as a seperate method inside _rank.gsc:
onPlayerKilled()
{
self giveMaxAmmo("crossbow_explosive_mp", 0, false);
}
This didn't help at all, so I was wondering if any of you hardcore modders out there could help me with it. (And yes, I had already given the player the weapon indicated) I'd also appreciate if you'd help me nail the basic classes that I need to know about other than _rank.gsc
Thank you in advance!
onPlayerKilled()
{
self giveMaxAmmo("crossbow_explosive_mp", 0, false);
}
This didn't help at all, so I was wondering if any of you hardcore modders out there could help me with it. (And yes, I had already given the player the weapon indicated) I'd also appreciate if you'd help me nail the basic classes that I need to know about other than _rank.gsc
Thank you in advance!