OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: repta on 31 Jul 2004, 21:36:28

Title: coop respawn
Post by: repta on 31 Jul 2004, 21:36:28
hey, i have a question. Could someone walk me through how to put a coop respawn in a game. I have 2 east players on seperate teams and i want them to respawn in one spot, not random. Please walk me through this and explain every detail( i dont kno code worth crap). Thanx
Title: Re:coop respawn
Post by: Artak on 01 Aug 2004, 00:01:42
This kind of respawn is called "base" respawn.

First you'll need to create a marker and name it as respawn_east. It can be of type empty so no-one can see it or a dot or what ever.

Then you'll make a new file to the mission's folder and name it as description.ext and insert these lines of code

respawn="base"
respawndelay=20

save the mission and try it in MP. That should do it.

Of course all of this and more is in the sticky Respawning topic, but sometimes it good to have more topics than one or a hundred.  ;D
Title: Re:coop respawn
Post by: repta on 01 Aug 2004, 23:25:06
it didnt work. i just came back as a bird.are u sure that's all i have to put in for code, no beginning stuff or end stuff.
Title: Re:coop respawn
Post by: DBR_ONIX on 02 Aug 2004, 15:26:14
Make sure your discription.ext (Spelling ::)) is not discription.ext.txt
Go into your mission's folder, and look for the file.. If it has a notepad icon.. You've not changed the bit in notepad, where it says "Text Files (*.txt)" to "All Files (*.*)"
Then save it again..

Or, another way to test, type a bunch of rubbish in the description.ext file, then try to load your mission.. It should crash to desktop.. If not, you've not got the file name right..
Remeber to deltete the rubbish for the file tho ;)
- Ben
Title: Re:coop respawn
Post by: repta on 02 Aug 2004, 16:00:53
i saved it as all files and changed it to ext and made sure hide extentions was off and it still doesnt work. i turn into a bird. if i try to edit the map w/ the respawn it crashes.
Title: Re:coop respawn
Post by: Zombie on 03 Aug 2004, 14:19:10
very strange.....maybe attach your mision here and we can spot something, or at least attach you description.ext
Title: Re:coop respawn
Post by: NoMaD on 03 Aug 2004, 22:47:59
Greets.
Are you trying to respawn while  testing the mission in the editor?  Respawn wont work in editor, you goto try it in multiplayer.
In your Description file you should have this...
respawn = "base"
respawndelay = 5
};      . .
The markers Name   for East = respawn_east  . West= respawn_west  .
Small prob ive encountered using this method is the Unit respawns with an M16/Ak47  with only 1 mag.
Title: Re:coop respawn
Post by: repta on 04 Aug 2004, 21:31:19
this is what my description file says:

respawn="base"
respawndelay=5

thats it.
Title: Re:coop respawn
Post by: NoMaD on 06 Aug 2004, 12:13:51
add,

};


on a line below.