Game Modding | Call of Duty: Black Ops 3 | Scripting
369:
Hello,
So i don't quite understand how if statements can be used, if i got it correctly a if statement always needs to recall a variable, which is made out of a true or false statement. Then my qeustion is, how do you define the true or false if that makes any sense. For example, i want the if statement to check if a trigger has been used, and then run the code.
I'm a total scrub in scripting, any help is greatly appreciated!
Spiki:
369:
Doesn't a waittill stop the rest of the code from running? Will give it a try in a few. For some clarification, i got 2 lightswitches, i want one to say that its off when the other is turned on and vice versa.
Spiki:
Doesn't a waittill stop the rest of the code from running? Will give it a try in a few. For some clarification, i got 2 lightswitches, i want one to say that its off when the other is turned on and vice versa.
It does stop the code but you cant check for trigger another way, atleast on a noob level
This should do it. Never tested.
369:
This should do it. Never tested.
Thank you alot , it works great. But i have to switch through 3 lightstates, so i don't think i could implement that in that code. I'll just keep it simple. I will use this code in a simple elevator though, last time i tried i couldn't get it to work vice versa so major thanks man!
Spiki:
Thank you alot , it works great. But i have to switch through 3 lightstates, so i don't think i could implement that in that code. I'll just keep it simple. I will use this code in a simple elevator though, last time i tried i couldn't get it to work vice versa so major thanks man!
like so
369:
like so
Thank you SOO much man. This just doubled my possibilities haha. I've made the code but i keep getting a syntax error now. I have no clue why, also not sure if it will work in the first place since i done a couple things like threading function within functions? I suck at explaining.