Arma 3
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.
< >
1-7 van 7 reacties weergegeven
Thats a bit vague.

Can you give a bit more details?
Are you saying you can complete the mission without completing the previous tasks?
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...
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.

thanks alot! that worked :)
Origineel geplaatst door lars.eriksson0:
thanks alot! that worked :)

Glad to hear it.
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 ?
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.
Laatst bewerkt door fight9; 1 dec 2013 om 0:47
< >
1-7 van 7 reacties weergegeven
Per pagina: 1530 50

Geplaatst op: 9 okt 2013 om 2:08
Aantal berichten: 7