OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Serial Killer on 06 Jul 2005, 21:24:27
-
I need a "choose respawn place" script, when you can choose a respawn place from a few locations. (After dying) :)
-
Anybody? :(
-
Taking that your respawn type is to a marker "base" or = 3
you need to
1) Run a killed event handler on each unit that you want this system to work on
2) The event handler would then run a "Respawn script"
3) As part of this respawn script, i personally would do the following
..... a) Set my respawn to a safe non playing area location
..... b) use a cutscene to act as my respawn delay
..... c)
............either Use the onsinglemapclick command to select a respawn (setpos) location (have markers and use distance marker to map click less than X = ok to setpos type thing
or
............ addaction a list of respawn to "Location"
I would have an actual respawn delay of approx 1 second
This gives you enough scripting time if required to grab the weapons and ammo array from the dead unit etc but not enough time for the dead cam to take effect