OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Crook on 02 Feb 2004, 05:32:47

Title: Respawn on Demand!
Post by: Crook on 02 Feb 2004, 05:32:47
I wondering if there was a way to have a player respawn before the time set in the description.ext... Example: like how Counter Strike, Raven Shield, and America's Army... it waits until the team is dead before it respawns...

Any help on how I would go about acomplishing this would be much appreciated  8)
Title: Re:Respawn on Demand!
Post by: _hammy_ on 02 Feb 2004, 06:07:51
shouldn't this go in the multiplayer section?
Title: Re:Respawn on Demand!
Post by: Crook on 02 Feb 2004, 06:14:27
probably... but that doesn't answer my question... :-\
Title: Re:Respawn on Demand!
Post by: Artak on 02 Feb 2004, 09:14:00
You could add a killed eventhandler to all the units to run a script locally on the killed clients machine. The script could setpos the player to  a remote location and create a camera or a black in or whatever which could tell the number of alive players. When all are dead the script would setpos the player to the respawn area and exit.

I'm not at home and can't go into it any more, but I think something like this could be build.