OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: sgt. fury on 02 Jul 2003, 22:04:12

Title: Rspawning with parachute
Post by: sgt. fury on 02 Jul 2003, 22:04:12
Hi Folks!

I want respawning players to respawn falling out of the sky in a parchute. How can I make this work? I've looked all over this MB, but I can't find a proper answer anywhere.

F.
Title: Re:Rspawning with parachute
Post by: Logic on 12 Sep 2003, 01:36:11
I've used this script to respawn players over a town. TownCenter is a game logic object I used to mark the center of the town and attach the script to.

#makealive
@(alive player)
player setpos [((getpos TownCenter) select 0)+(random 440)-220,((getpos TownCenter) select 1)+(random 440)-220,100]
_plane="parachute" camcreate (getpos player)
player moveindriver _plane
@(!alive player)
goto "makealive"