Giving the player a random weapon when they score a kill?
NylePudding last edited by
I’ve been messing around with scripting a little bit, I have been looking through the AOCPawn class and found the variables PrimaryWeapon, SecondaryWeapon etc. But I’m not too sure how to override the ScoreKill function in my class that extends AOCFFA so I can change those variables when the players scores a kill.
Or perhaps I can do it in a different way? Am I heading in the right direction or should I be trying something else? How would I do it?
EDIT 1 - Okay, I’ve figured out how to override ScoreKill but I still don’t know how to equip the player with a weapon.
EDIT 2 - Now I’ve found the GiveUserWeapon() funtion in the AOCPawn class. I guess I need to use that, I’m not too sure what to use as the argument though.
NabsterHax last edited by
I give players weapons based on a list in my SwordGame mode as part of Chiv+
More specifically the Killed function in here:
And ScoreKill and SetLoadout in: