Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: Sylvacre
I had trouble deciding which starting pistol I wanted to use in my map, so I instead created a script to allow the player to decide for themselves!
This script currently only allows for 2 options. It gives the player 10 seconds, then takes away whichever gun they aren't holding.
Instructions:
Open your mapname.gsc located in (Call of Duty Black Ops III\usermaps\map_name\scripts\zm)
At the top, somewhere within main, add this line and replace the text in quotes with the name of the second weapon you want as an option:
Then, at the bottom, add this function:
Done!
When you load into your map it will give you your "second" weapon alongside your normal starting pistol and after 10 seconds will take away the one you aren't holding.
Disclaimer: I am by no means an experienced scripter and it's very possible there's a better way to make this script so if anyone has suggestions for how it can be made better I'm open to hearing them. I would think there's probably a better way to do the last part of the script in particular, but I tried many different things and wasn't able to figure out a "better" way.
ModmeBot:
Reply By: Wild
This is awesome, great tutorial!
ModmeBot:
Reply By: Azazel
oh my god thank you!!! i was literally thinking about this because i want to have all of the pistols from WAW - IW
ModmeBot:
Reply By: Sylvacre
Glad to help :)