- Joined
- Dec 22, 2013
- Messages
- 143
- Reaction score
- 20
- Primarily Uses
Hello
What I'm looking for is a script that will: A: Get keypress, I can enter whatever key I want just the script it will run and check for whenever the key is pressed. B: Upon triggering the key the script will change the equipped weapon to the next one in the player inventory. C: Loop around.
Alternatively it would be amazing if I could manually tell the script what weapons are ok to loop through, using a script call. Something like "EnableWeapon(X,X,ETC)"
I hope that is clear enough. I also posted a picture of some basic logic down below.
Basically this is what I need, It would be amazing if it could check what weapons you actually have in your inventory. PadConfig.weaponeq is just a reference to make gamepads avaliable. It's basically saying :RIGHT , If you wonder.
Thanks in advance!
Cheers ^-^

What I'm looking for is a script that will: A: Get keypress, I can enter whatever key I want just the script it will run and check for whenever the key is pressed. B: Upon triggering the key the script will change the equipped weapon to the next one in the player inventory. C: Loop around.
Alternatively it would be amazing if I could manually tell the script what weapons are ok to loop through, using a script call. Something like "EnableWeapon(X,X,ETC)"
I hope that is clear enough. I also posted a picture of some basic logic down below.
Basically this is what I need, It would be amazing if it could check what weapons you actually have in your inventory. PadConfig.weaponeq is just a reference to make gamepads avaliable. It's basically saying :RIGHT , If you wonder.
Thanks in advance!
Cheers ^-^

Last edited by a moderator:
