OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: johan_d2 on 16 Feb 2005, 19:22:36

Title: Group respawn
Post by: johan_d2 on 16 Feb 2005, 19:22:36
Hi,

I looked with search, and in the code snippets, but couldnt find what I am looking for. Altought the script where they attack one from all directions is nice, but I understand not much of how to alter.

What I want is a group of soldiers, give them a couple of waypoints, and when they are killed, they respawn from the original point and restart the route all over.

Can anyone help? (and remember.. noob in scripting..)

Johan
Title: Re:Group respawn
Post by: macguba on 17 Feb 2005, 02:26:41
Noob to scripts ... and want to script => read snYpir's A Friendly Intro to Code Snippets + Johan Gustafsson's Scripting Tutorial.

You'll need a trigger to detect when the original group are dead and createUnit commands to make the new units.
Title: Re:Group respawn
Post by: johan_d2 on 17 Feb 2005, 07:37:25
Sir, Yes Sir!

But.. I hoped someone has already a simple working script. I dont want to invent the wheel again. A lot of fine scripts are in the depot already, but missed this one.

A little modifications I can do, but not the while thing from scratch.. want to spend more time making the mission then do scripting.

Johan