viper-6 Posted June 14, 2003 Share Posted June 14, 2003 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? Quote Link to comment Share on other sites More sharing options...
Stalker Posted June 14, 2003 Share Posted June 14, 2003 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< 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 Quote Link to comment Share on other sites More sharing options...
Jack57 Posted June 14, 2003 Share Posted June 14, 2003 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 Quote Link to comment Share on other sites More sharing options...
viper-6 Posted June 15, 2003 Author Share Posted June 15, 2003 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!! Quote Link to comment Share on other sites More sharing options...
Jack57 Posted June 15, 2003 Share Posted June 15, 2003 Probably the best thing would be to check out EL_OSO's excellent IGOR FOR DUMMIES. That way you'll get the basics down which is crucial to moving onto more advanced scripting. Cheers, Jack Quote Link to comment Share on other sites More sharing options...
Stalker Posted June 15, 2003 Share Posted June 15, 2003 or You can use an and hehe, haven't noticed this queries untill now Quote Link to comment Share on other sites More sharing options...
The_Slink Posted June 15, 2003 Share Posted June 15, 2003 Look at how it's done in other missions. That's the best way to learn. Stalker: I look at Jack's missions mostly and he uses 'em a lot! Quote Link to comment Share on other sites More sharing options...
Guest HBS_CIA GHOST Posted June 16, 2003 Share Posted June 16, 2003 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. Quote Link to comment Share on other sites More sharing options...
Stalker Posted June 16, 2003 Share Posted June 16, 2003 I started like this in november too, with my mega mission with 3 scriptblocks 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 and work on my first mod................... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.