Game Modding | Call of Duty: Black Ops 3 | Scripting
Thread By: Dextro62
I have made steps that will rise out of the ground when the player walks through a trigger but Im not sure how to make it work using an array. This is my current code:
Reply By: mathfag You could do something like this:
All the steps would have the targetname"steps" and the clip would be "steps_clip". To the steps you would need to add another KVP called index and number the steps (first step would be index-0, second would be index-1... (KVP is index, value is an intiger, starting with 0)).
multiplies the increment variable with the index of the step which makes the whole thing look like stairs.
You could also make the index of each step the value of how much it must rise and change the code to
*Have not tested this.*
Reply By: Dextro62 Thanks This worked, I changed a bit of it though. This is what I ended up with: