Home   Help Search Login Register  

Author Topic: Group respawn single player?  (Read 456 times)

0 Members and 1 Guest are viewing this topic.

FLBEE

  • Guest
Group respawn single player?
« 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.

Kaliyuga

  • Guest
Re:Group respawn single player?
« Reply #1 on: 23 Sep 2003, 07:41:58 »
 No Respawn In SP missions ;)

don't die  and make wise use of the opportunities you have to save

:cheers:

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Group respawn single player?
« Reply #2 on: 23 Sep 2003, 09:34:11 »
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.
Not all is lost.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Group respawn single player?
« Reply #3 on: 23 Sep 2003, 09:50:10 »
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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted