Larre Oct 9, 2013 @ 2:08am
Problem with "End mission" trigger
I have created "Create task module" -> "Set task state (succeed) Module" -> Trigger with end mission (that checks if bluefor is in the area). The "Create task module" is grouped to the previous (mid-mission) Trigger so the last task is activated after finish the previous task.

The problem is that even if the last task isn't active, you can go to the area and complete the mission.
Showing 1-7 of 7 comments
< >
Theo Hardmeier Oct 11, 2013 @ 2:32am 
Thats a bit vague.

Can you give a bit more details?
Are you saying you can complete the mission without completing the previous tasks?
The Zodah Oct 14, 2013 @ 10:23pm 
You would need to set it to activate the trigger via another. I am not sure how to do it, the other way is to use the CreateTrigger command. I could find out how to do it. Its all script to put in the previos triggers OnAct...
Theo Hardmeier Oct 15, 2013 @ 6:28am 
Try this.

For each trigger that is sync with the tasks you created by the module add this. (the trigger that is used to check if the task is done)
For your first obj in the trigger synced to your task module add this on the (ON ACT) section.

part1 = true

For your next obj in the trigger synched to your task module add this.

Part2 = true

And so on in the trigger linked to each obj.

Then make a new end mission trigger and add this in the conditions.

part1 and part2 (if you have more obj and more *parts* then add them as well.

Eg part1 and part2 and part3

This hopefully will work.

Larre Oct 28, 2013 @ 11:56am 
thanks alot! that worked :)
Theo Hardmeier Oct 28, 2013 @ 7:50pm 
Originally posted by lars.eriksson0:
thanks alot! that worked :)

Glad to hear it.
Jakob Nov 30, 2013 @ 5:39am 
Wait.. so Ill add a new "Set Task state" END (1) and then in ON ACT in that module, ill add the following.

part1 and part2 and part 3

depeding on how many objectives i have yea ? And do u want "part1.." or "Objective name" ?
The ID that is ?
fight9 Nov 30, 2013 @ 9:37pm 
I personally like using "triggerActivated TriggerName" as the condition in corresponding triggers.

So you have four separate triggers, part1 completes task one, part2 completes task two, and part3 completes task 3. Then on your end mission trigger, you would have:
triggerActivated part1 && triggerActivated part2 && triggerActivated part3
If you want to person to have to go to a specific place before the game ends, then you would have the above boxes configured (ie bluefor present) and then your trigger condition would be:
this && triggerActivated part1 && triggerActivated part2 && triggerActivated part3

AND / && are interchangable.

http://community.bistudio.com/wiki/triggerActivated

EDIT: I finally figured out this "part1 = true". One trigger needs to have the condition of "part1" and then the second trigger needs the On Act to be "part1 = true". When the second trigger becomes activated, the word "part1" (not the trigger name part1) becomes "true", thus activating the first trigger. With that in mind, the three triggers that end your tasks, just add "part1(2 or 3) = true" to the On Act fields. Then, on your end mission trigger, add "part1 && part2 && part3" to the condition. One thing I did notice though, if a trigger is activated by a units presence, then when deactivated, part1 will no longer equal true. That means that you need to add "part1 = true" to the On Deactivation fields also. An !alive trigger condition would not have to worry about deactivation, unless the unit comes back alive of course... lol. Name = true is particularly useful when you want a trigger to be activated multiple different ways. Say you have a trigger that runs a script that spawns units when activated. You could make the activation of that trigger possible many different ways. Maybe an !alive trigger for activation, or a blufor present, or Opfor not present, or any combination of triggers.

When using "triggerActivated", you don't have to add anything to the triggers On Act fields, or account for deactivation. I personally think its easier, but do what ever works for you.
Last edited by fight9; Dec 1, 2013 @ 12:47am
Showing 1-7 of 7 comments
< >
Per page: 15 30 50