OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mad Monk on 25 Jan 2005, 07:22:44
-
Hello,
I see a lot of tutorials on how to make a unit respawn in a MP ctf game, but I want to do it in a co-op scenario. Can I make it so that when I or my friend die, we will take over an AI controlled soldier on our team? In my mission, there are many small groups of one or two people and I was wondering if you can only take command of someone in your group or anyone on your team?
-
Open the description.ext. In the top line you write:
respawn = "group"
Check the syntax carefully though. It should make your player respawn as another member of your team when he is killed.
-
Will I respawn as a soldier only in my group or anyone on my side (the west.) Will only soldiers marked as playable be availible? Does it work in multiplayer?
-
Read this thread for the definitive information on respawning.
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=91
Respawn is only possible in Multiplayer.
Planck
-
OK, so my character is alone (not in a group) but I still want to respawn. Would it be possible for him to respawn by having a trigger that detects when he dies, and then quickly adding an AI to his group so when it goes to respawn a member in a group it makes that new AI soldier the player? Or, is it possible to have reserve characters that are "in" the group but not actually in it? Meaning that they won't send any radio chatter and you cannot control them? Thanks for any responses.
-
I think if you use
respawn="INSTANT";
you will respawn at your place of death after a small delay.
never used it before tho.
someone will surely correct me if I am wrong.
MadFred
-
yes, that works, but then you have an unlimited amount of spawns, AFAIK
if you want a limited number, or you want to use all units of a side, you would need group respawn and make a unit join his side at death from an array of all eligible units