I 've made a testmission where you can dismantle a timebomb (but in the mission it's laptop... :-\) by cutting one of the (virtual) colored wires. (a lethal weapon *x* scenario)
When you're close to the bomb, three actions appear : Cut red wire, cut blue wire & cut green wire.
Also three different things that could happen when you cut one:
- The bomb explodes
- The timer stops
- The timer accelerate x2
You can't know which wire's the right one. They were randomly defined in the bomb_init.sqs at the start of the mission.
In the testmission first you need to start the timer via a radiotrigger, then listen to the beeping sound and find the laptop. Choose a wire to dismantle it, you got max 2 chances to dismantle it. The timer counts down from 250 sec to 0, but you can change that in the init.sqs. Search for :
limit = 250
...and change the 250 in the time you want.
During my tests I couldn't find any bugs, but I'm my own betatester, so I guess there are still issues...
I needed 6 scripts & 3 triggers & too much boleans & global variables, but I think it can be done easier,
If you know how, be free to make it happen, so I can learn something...
I would be nice if some1 can make this work in MP, because I don't have a clue how to work with addaction(s) in MP. Also I had some problems with counters in MP in the past.
How can I make addaction work for every player in a MP mission?
Examplemission in attachment, editorupgrade102 needed!
I think it works with OFP - CWC too.