Help |
Help |
Jun 28 2010, 12:45
Post
#1
|
|
Member Group: Members Posts: 35 Joined: 4-August 08 From: Finland Member No.: 3,818 |
How do I make a mission end when the player reaches the extraction point after killing two targets? I have 2 triggers.
The trigger for the first target is like this: Condition: ! (alive target1) On Act: hit2=true The second target: Condition ! (alive target2) On act hit1=true Both of the target triggers are global. Ok then the Extraction point trigger: Activation: BLUFOR, Repeatedly Present Condition: hit1 AND hit2 On Act hit3=true And the End trigger. Type: End 1 Condition hit1 AND hit2 AND hit3. The problem is that the mission ends when the two targets are dead. What am I doing wrong? I want it to end when the player reaches the ext. point |
|
|
Jul 9 2010, 09:13
Post
#2
|
|
Member Group: Members Posts: 41 Joined: 6-July 07 Member No.: 961 |
How do I make a mission end when the player reaches the extraction point after killing two targets? I have 2 triggers. The trigger for the first target is like this: Condition: ! (alive target1) On Act: hit2=true The second target: Condition ! (alive target2) On act hit1=true Both of the target triggers are global. Ok then the Extraction point trigger: Activation: BLUFOR, Repeatedly Present Condition: hit1 AND hit2 On Act hit3=true And the End trigger. Type: End 1 Condition hit1 AND hit2 AND hit3. The problem is that the mission ends when the two targets are dead. What am I doing wrong? I want it to end when the player reaches the ext. point name your player soldier (i.e. player) I am assuming target1 and target2 are the names of your victims. put 1 trigger at your extraction point with the following parameters: BLUFOR present once END#1 in the condition line put: this && player in thislist && ! (alive target1) && ! (alive target2); the above only requires one trigger. player in thislist causes it to only get triggered when that specific unit is in the trigger radius, which is nice, if your exfil point is a base with blufor(or opfor depending which side your playing) troops running around. As for your code, this is the issue: Ok then the Extraction point trigger: Activation: BLUFOR, Repeatedly Present Condition: hit1 AND hit2 On Act hit3=true the bolded should be: this && hit1 && hit2 on act: hit3=true without the "this" first it ignores the BLUFOR Present condition. So once hit1 and hit2, it ends. This post has been edited by tsd1: Jul 9 2010, 09:45 |
|
|
Jul 9 2010, 13:00
Post
#3
|
|
Gee, I wish we had one of them doomsday machines. Group: Moderators Posts: 2,037 Joined: 13-November 06 From: Wales Member No.: 155 |
I'm not too sure how you're setting this up, but here's how I'd do it:
1. Name your targets Hit1 and Hit2, like you have. 2. Create the trigger for your extraction point 3. Use the group tool to link the trigger to the player's group 4. Set up the trigger normally. I'd suggest "group leader present, repeatedly, End#1" 5. Set up the trigger's condition so it reads: CODE (this) AND (not alive Hit1) AND (not alive Hit2) Should get the desired results, with only one trigger. -------------------- The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you Site Issues Thread - Complain about site issues here. We might even fix them! Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly". QUOTE(Major Mike Shearer) We can categorically state that we have not released man-eating badgers into the area. QUOTE(Brace Belden) A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one. |
|
|
Lo-Fi Version | Time is now: 17th April 2024 - 23:23 |