OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: mook1360 on 17 Mar 2007, 16:24:39

Title: How to end a mission (MP)?
Post by: mook1360 on 17 Mar 2007, 16:24:39
hi i am wanting to use the mission editor to create a game on arma for me and my friends. could anyone tell me if and how it is possible to do this where once all the ai enemy is dead the game ends and how we can constantly re-spawn.
i hope there is someone who can help as i have not got a clue about this editor and my head is battered!

cheers

EDIT: Thread title, h-
Title: Re: How to end a mission (MP)?
Post by: sharkattack on 17 Mar 2007, 18:43:22
 the easiest way would be to create a trigger covering youre map  with ..
====================
condition .......
west (or other) not present

type.........
end1 (or other )

on activation......
ForceEnd
====================
then when  none of youre units are present within trigger area   (ie  dead)
trigger will activate and  forceEnd1 will be executed
Title: Re: How to end a mission (MP)?
Post by: mook1360 on 19 Mar 2007, 18:32:08
thanks alot i will give that a try. dont suppose you could tell me how to add armour and aircraft that have nobody inside as they always seem to have bots in and i cant get in the vehicle.

cheers again  :)
Title: Re: How to end a mission (MP)?
Post by: Planck on 19 Mar 2007, 20:50:59
Once a player unit is on the map you can then choose an empty vehicle form the Empty side.

Empty side is only available once the player unit has been placed on the map.


Planck
Title: Re: How to end a mission (MP)?
Post by: mook1360 on 20 Mar 2007, 19:49:16
Thanks for the replies im starting to get somewhere now. Can i just ask one more question, i have managed to create the game where once my all my team have been killed the game ends. How can i create a game where my team keep re-spawning but once all enemy have been killed the game ends?
Thanks again
Title: Re: How to end a mission (MP)?
Post by: Cheetah on 20 Mar 2007, 22:43:48
If your team is BLUFOR, create a trigger activated by OPFOR not present, covering the whole map and select any end (like end1) in the type list.

How to keep your team spawning, well you're making an MP mission. So you need a description.ext with:
Code: [Select]
respawn="3";
respawndelay=20;

In the editor, create a marker named "respawn_west" (use F6). That should do the trick.
Title: Re: How to end a mission (MP)?
Post by: mook1360 on 21 Mar 2007, 23:09:54
Thats great thanks, i have managed to work out how to end the mission when the enemy team all die and how to create empty vehicles but with me being a total newbie i am struggling with the respawn. dont suppose you could go into a little more detail please as im not too great at this lol. cheers again
Title: Re: How to end a mission (MP)?
Post by: mook1360 on 23 Mar 2007, 15:25:26
with reference to the last, i have created a marker. can anyone tell me where to enter the code to respawn plz.
ta