Home   Help Search Login Register  

Author Topic: I GOT RESISTANCE!!! -Need help with a Trigger.  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

TerranAce007

  • Guest
I GOT RESISTANCE!!! -Need help with a Trigger.
« on: 26 Dec 2002, 05:12:01 »
I just got resistance, and am making a mission where you are a secret service sniper, and have to protect the president. I haven't played OFP in a while, and thoight the forums were down. Then I found an updated link...

Anyway, some of the peope in the crowd have guns, and will attack the president, but their probability of appearance is low, so its always someone different...

I have written a long script where the Presidents sign the peace treaty, then get in the car and leave. Now I need to add it the assissination attempts. I have the assassins ready, and they attack with the unlock wp command. The only problem is, if they are present(remember not 100% of the time), they will attack, but the ceremony script keeps going in the background. If they are not present, it goes like its supposed to.

What I have done is split the main script into parts. The first part executes until the point where I want the first assassin to attack. The waypoint unlocks, and the script exits. Now, if the assassin IS present, he will attack, and the mission continues. If he IS NOT present, the ceremony does not continue and nothing happens.

The not alive command doesn't work if the unit does not exist(because of probability), so How can I make a trigger that detects if the assassin is not present, then executes the next part of the script?

Thanks!

PiNs_Da_Smoka

  • Guest
Re:I GOT RESISTANCE!!! -Need help with a Trigger.
« Reply #1 on: 27 Dec 2002, 09:15:10 »
Place a trigger, and set it to "Not present" and then set the "On Activation" settings. ;D