OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: eX-BuG on 15 Nov 2004, 13:40:26

Title: Then a player die How to switch to another
Post by: eX-BuG on 15 Nov 2004, 13:40:26
Hello i'm new one ...
when i playing coperative missions and my player die >:(
computer give the next in formation ;D
How can i create such script when i'm editing missions  ???

HELP!! ::)
Thx
Title: Re:Then a player die How to switch to another
Post by: Dog - RM on 15 Nov 2004, 15:42:47
That, I think, what you are after is called respawning. Make a file in notepad call it description.ext and in there type this:

Code: [Select]
respawn="group";

onLoadMission=Malden

Just change the name of your island depending on which one it is. Place this file into your mission folder and that way as long as your players are grouped together you will respawn into one of them when you die. There are a bunch of posts about this just search for respawn to find the different ways you can do it.
Title: Re:Then a player die How to switch to another
Post by: pazuzu on 15 Nov 2004, 22:37:57
I think you mean

respawn = Group
respawndelay =  30

Group means you respawn into the AI in your own group.

Respawndelay is how many seconds it takes you to respawn.

In this case 30 seconds but can be changed to whatever number you want.