OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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
-
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
-
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.
-
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
-
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.
-
very strange.....maybe attach your mision here and we can spot something, or at least attach you description.ext
-
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.
-
this is what my description file says:
respawn="base"
respawndelay=5
thats it.
-
add,
};
on a line below.