Jump to content
Sign in to follow this  
SandMan13

Mission Endings

Recommended Posts

I was wonder how, if I want to make a mission end after a object is destroyed, to do this. I synced End #1 to the waypoint Destroy of my Squad on an INS HQ. Is that the wrong way to be doing it? (obviously so because it doesn't work) How can I do this?

Also what are some other fun ways to end a mission that you guys have used?

Share this post


Link to post
Share on other sites

This demo mission shows an end trigger at work. Basically one trigger tests for the destruction of an object then the other tests for that trigger to go off and 30 seconds later ends the mission.

Share this post


Link to post
Share on other sites

should i put this demo mission in single player mission folder or MP?

never mind i can't use that file. I am using ARMA 2 free.

Share this post


Link to post
Share on other sites

Ahh, I'll make you a A2F version so you can see. :)

Here's a version you can use with ArmA2Free.

Edited by kylania

Share this post


Link to post
Share on other sites

Just put that folder (destroyTasks.chernarus) in:

C:\Users\YourWindowsUsername\Documents\ArmA 2 Other Profiles\YourArmAUsername\missions

folder

Then click Single Player -> Editor and open that mission. Click Preview to try it out, hop in the tank and start shooting Shilkas. :)

Share this post


Link to post
Share on other sites

When you insert the object, give a name. Obj1

Make a trigger.

Size 0x0

once

Activated by none

End1

Condition: !(alive obj1)

Now the missions ends when obj1 is killed.

Is it is a building on the map then use this method:

http://i48.photobucket.com/albums/f207/speederfreak/detectstaticobjectdeath.jpg

Make a trigger.

NOT PRESENT

End 1 and sync it (f5) with the building.

Make sure the trigger covers the building.

Edited by speeder

Share this post


Link to post
Share on other sites

While technically correct the problem with speeder's approach is the mission will end immediately upon the destruction of the object. You'll fire--and mission ends.

By using the triggerActivated method in my demo you get some time to enjoy the fireworks and music before the mission stops. :)

Share this post


Link to post
Share on other sites

that mission you made kylania doesn't seem to work. I put it in the missions folder but it doesn't show up anywhere.

Share this post


Link to post
Share on other sites

Singleplayer -> Editor -> Choose Chernarus -> Click LOAD -> Choose destroyTasks -> Click Preview

Share this post


Link to post
Share on other sites

yes i know to do that but when i get to the list of missions i can load destroytasks is not there. I think it is because it is a 7Z file instead of PBO file like all the other missions in that folder.

Share this post


Link to post
Share on other sites

Yes, 7zip is a compression format like a zip or rar. Open it using 7Zip (free and awesome) then extract the destroyTasks.chernarus folder and put that in your missions folder.

Share this post


Link to post
Share on other sites

Speaking of mission ending triggers...

I have two objectives, and I want to FAIL the mission if objective 2 is completed before objective 1.

I thought it could be as easy as;

!(obj1_done) && obj2_done;

in an end trigger, but I'm not having luck. Currently trying different variations (and forum searches), but would greatly appreciate time saving tip.

Share this post


Link to post
Share on other sites

Easy.

Make 3 triggers.

One trigger detects when obj1 is completed, call it obj1done.

Second trigger detects when only obj2 is completed, call it obj2done.

Third trigger detects when both obj1 and obj2 have been completed, call it obj1obj2done.

For this trigger you'll use whatever condition it is to complete the second objective and also use triggeractivated obj1done, so if you had to kill a unit called man2 for the second objective you'd use

!alive man2 AND TriggerActivated obj1done

Set the second trigger that detects for just obj2done to fail the mission.

Set the third trigger to win the mission but in the On Activation box put

deletevehicle obj2done

So once you complete both obj1 then obj2 in that order it will delete the trigger that will fail the mission if obj2 is done first.

Share this post


Link to post
Share on other sites

Thank you Sergeant Koni!

I ended up altering it just a bit, but it was enough to get me working. I still need to do more testing, but so far things seem good to go.

(part of what I did differently was put the deletevehicle bit on the first trigger instead of the last, but anyway.....)

Thanks much for your time! :)

Share this post


Link to post
Share on other sites

There probably will be a better and maybe simpler way of doing it, but that should work well enough :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×