Home   Help Search Login Register  

Author Topic: respawn  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

Pellepirat

  • Guest
respawn
« on: 03 Apr 2003, 09:41:02 »
Is there a script for singel layer that makes it possible to respawn into the battle at a given spot after you are dead?
« Last Edit: 03 Apr 2003, 09:41:34 by Pellepirat »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:respawn
« Reply #1 on: 03 Apr 2003, 12:03:48 »
You mean for single player?  ;D

No I think there isn't.  :-\
Not all is lost.

Der_Richter

  • Guest
Re:respawn
« Reply #2 on: 04 Apr 2003, 11:56:13 »
Not to hard to do though. Set a trigger area and if the player dies, revive him and place him at the trigger location. Or a logic would do.


_unit = _this select 0

if (_unit NOT alive) {_unit setDammage 0}

_unit setPos Trigger


Something like that. Not correct code, but you get my point.






Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:respawn
« Reply #3 on: 05 Apr 2003, 11:58:01 »
...the problem with that being that the "onplayerdeath.sqs" death scene will still play.

To my knowledge, no one has yet found a way around this... ;)