Game Modding | Call of Duty: Black Ops 3 | Scripting
FrostIceforge:
I've only ever created scripts for my own maps. How would I make custom scripts run on stock maps? I created a mod and added a script parse tree to the zone file and wrote my script, but it didn't execute in game. For maps, you have to add the init to the map's GSC. But I don't have the GSC for every stock map to make it run do I?
doctor99268:
replying to get visibility here. i would also like to know, every tutorial and their mum is just about custom maps.
Mike_Fozzzy:
There is a way to run the script automatically as long it's setup properly in zone, etc. Not sure if it will work for mods though.
Make sure this is in the script that you wish to run in the stock map:
Then add this underneath all of the usings, inserts etc:
The "__init__" and "__main__" are just functions used in your script so make sure they are setup. If you are using one of them and not the other make sure to set the one you're not using to "undefined" (without the speech marks obviously).
Hope this helps.