OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Owens on 16 Jun 2003, 17:22:12

Title: When you die how do you respawn as someone in same group thats used by AI
Post by: Owens on 16 Jun 2003, 17:22:12
The coop mission made by operation flashpoint (Hostage rescue or something). When you die you can respawn as someone in the same group thats controlled by AI, if there are any left. How do you do this ???

I am also havn trouble with makin units appear at certain times. I make a guy who dies, and on activation: deadguy=true.
Then in the "condition of presence" of another unit i put deadguy.
And expect the unit to appear when he dies.
But it dosnt sem to be workin :(
Ive just started makin maps and still aint got the hang of it that well but i thought this would be how it would work.

Thx in advance
Title: Re:When you die how do you respawn as someone in same group thats used by AI
Post by: dmakatra on 16 Jun 2003, 17:27:25
@ 1: No idea. Check ed depot if thereÂ's a script or sum tute about it.

@ 2: UÂ'll have to use createunit or setpos a guy from another pos there. If the map is already laggy I suggest u use createunit but itÂ's much better and simpler to use the setpos command. Check the ed depot online command reference.
Title: Re:When you die how do you respawn as someone in same group thats used by AI
Post by: SteroidG on 17 Jun 2003, 01:53:44
For q1, put something like:

respawn = group;

into your description.ext
Title: Re:When you die how do you respawn as someone in same group thats used by AI
Post by: Owens on 17 Jun 2003, 18:05:29
i have tried putting that into the init field of the group leader but it aint working. I dont know where you mean (Description.ext).
thx.
Title: Re:When you die how do you respawn as someone in same group thats used by AI
Post by: SteroidG on 18 Jun 2003, 01:50:51
In the directory of your mission. Make a plain text file called description.ext and put "respawn=group" in it (any where will do, but I always put it at the top). And it'll work.