Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Chadric273 on January 09, 2019, 06:56:07 pm
Title: How do I make it something in my script doesn't activate until a certain round?
Post by: Chadric273 on January 09, 2019, 06:56:07 pm
Hey guys! Just as the title says, I am wondering how to make it so that something in my script does not happen until a certain round has been passed. I am sure it is something simple, but I am newer to scripting so I am unsure how to do this. Any help is much appreaciated!
Title: How do I make it something in my script doesn't activate until a certain round?
Post by: isaacscott935 on January 11, 2019, 02:29:44 pm
Put the code above in the main() function of your script. Replace ‘10’ with the round you want your script to be used. Replace ‘your_function’ with the name of your function.
Title: How do I make it something in my script doesn't activate until a certain round?
Post by: ihmiskeho on January 11, 2019, 03:48:48 pm
Untested but should work Replace YOUR_FUNCTION_NAME with whatever you want.
Put the code above in the main() function of your script. Replace ‘10’ with the round you want your script to be used. Replace ‘your_function’ with the name of your function.
This would need a while loop in order to work. Otherwise it check the round number only when this function is called. This means that if the round is not right, nothing will happen and the function stops.
Title: How do I make it something in my script doesn't activate until a certain round?
Post by: isaacscott935 on January 11, 2019, 06:01:55 pm
Yeah, i literally haven't scripted in a while so i am very rusty