OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FLBEE on 23 Sep 2003, 03:51:41
-
Is it possible to have group respawn in a single player mission?
I made a mission in multiplayer and put respawn = group in the description file--it works fine. Then I converted it to single player and it stopped.
I think the mission should go on even if the leader is killed.
Maybe my question should be--How do I reassign leadership of the group when leader is killed--before the mission auto-ends and gives me one of those cool quotes?
If there is already a tute, can anybody tell me the coordinates of it? ;D
THX for your time.
-
No Respawn In SP missions ;)
don't die and make wise use of the opportunities you have to save
:cheers:
-
You could do a script with the following
#loop
@getdammage (leader groupname) > 0.85
(leader groupname) setdammage 0
_pos = getpos (leader groupname)
(leader groupname) setpos [(getpos _pos select 0) -50, (getpos _pos select 1) -50, getpos _pos select 2]
goto "loop"
There are better (better looking) ways of doing it, this is just a rough example.
What this does is it heals the leader after he's got more than 85% of damage, and 'spawns' him near to where he died.
However, this only works if the script kicks in fast enough. ie. before ofp discovers that the leader is actually dead.
-
Best you could do here is:
If you want it to be a single player map, but being able
to use respawn, then just play it in multiplayer, but ALONE.
~S~ CD