Jump to content

Mission Ending


viper-6

Recommended Posts

I created a rescue MOD, everything works properly except the ending. I want the mission to end once all objectives are complete, meaning, all hostages and all remaining players are in the extraction zone. How do I do this?

Link to comment
Share on other sites

Trigger:

Startup

Response: Set EndCounter to 0

Trigger:

>Proximity Platoon: A member of >hostages< is within 10m of extraction

Response:

>Block Preserve

>Continue if the number of members of >hostages< :P are within 10 metres of extraction is equal to the number of active actors on >hostages<

>Increment EndCounter

>Continiue if the value of EndCounter is equal to 2

>Set Timer >End it< to expire in 3 sec

>Block Remove

Trigger:

>Proximity Platoon: A member of PlayersPlatoon is within 10m of extraction

Response:

>Block Preserve

>Continue if the number of members of >PlayersPlatoon< are within 10m of extraction is equal to the number of active actors on >PlayersPlatoon<

>Increment EndCounter

>Continue if the Value of EndCounter is equal to 2

Set Timer End It to expire in 3 sec

>Block Remove

Trigger: Timer End It has expired

Response:

declare mission complete

Greets,Stalker :ph34r:

Link to comment
Share on other sites

Just a couple of points - the way you have that set up it will end if either all the Hostages or all the players are at extraction. This is because the counter will continue to increment until the secong query condition method is met.

Perhaps it might be better to put both quieries in the same block. You can use an and operator or just place the queries in sequence. This way you can do away with the counter. If you want to use a counter to track your objectives there is a discussion about that topic here.

Jack

Trigger:

Startup

Response:

Set PlayersPlatoon to the PlayerControlledPlatoon

Trigger:

>Proximity Platoon: A member of PlayersPlatoon is within 10m of extraction

Responses:

>Block Preserve

>Continue if the number of members of >PlayersPlatoon< within 10m of extraction is equal to the number of active actors on >PlayersPlatoon<

>Continue if the number of members of >hostages< within 10 metres of extraction is equal to the number of active actors on >hostages<

Set Timer End It to expire in 3 sec

>Block Remove

Trigger:

Timer End It has expired

Response:

declare mission complete

Link to comment
Share on other sites

Sorry guys, I'm not understanding. These responses you're suggesting don't exist. I know they're there somewhere, but how do I open them????? Jack, you say to set a response "set players platoon to the player controllde platoon, but how do I do that? See what I mean? Thanks for your patience guys!!

Link to comment
Share on other sites

Guest HBS_CIA GHOST

Thats how I learned to use IGOR. I looked at missions made by GR and learned from that. Open a mission where you have to reach the extraction zone with a rescued hostage. Then see how they do it. :o=

Link to comment
Share on other sites

I started like this in november too, with my mega mission with 3 scriptblocks :lol:

then I tried around a bit with very little missions and.......

........in january I learned how to make cinematics...... and worked a bit on the USMC 31st MEU.......

then I understood more and more response and combos....

and now I am here :rocky:

and work on my first mod................... :rolleyes::rolleyes::)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...