OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
You mean for single player? ;D
No I think there isn't. :-\
-
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.
-
...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... ;)