OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pellepirat on 03 Apr 2003, 09:41:02

Title: respawn
Post by: Pellepirat 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?
Title: Re:respawn
Post by: Artak on 03 Apr 2003, 12:03:48
You mean for single player?  ;D

No I think there isn't.  :-\
Title: Re:respawn
Post by: Der_Richter 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.





Title: Re:respawn
Post by: Sui 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... ;)