farix 10 Posted June 21, 2011 Hey Guys. I was just wondering if it was possible to put the respawn marker in midair. The only method i currently know of making a res-pawn point is with the marker function. I am trying to get it so that when a player dies they will spawn back at the start (Which is in a Static C-130 at 2000 Height) Thanks Guys -Farix Share this post Link to post Share on other sites
kylania 568 Posted June 21, 2011 i44 has a mission where you respawn on a plane, might check that out to see how they did it. Share this post Link to post Share on other sites
demonized 20 Posted June 22, 2011 place a trigger over markerarea, say 100 big, anyone present, repeated. code in on act: {_x setPos <position of static c130 with height>} foreach list thisTrigger; maybe also you should use a blackout screen on a killed eventhandler to "hide" the teleport from the ground marker to the static c130. something like this placed in init of every playableUnit: _idx = this addMPEventHandler ["mpkilled", { cutText ["","BLACK OUT",5]; }]; Share this post Link to post Share on other sites
celery 8 Posted June 22, 2011 (edited) player addEventHandler ["Respawn",{_unit=_this select 0;_unit setPosASL [getPos _unit select 0,getPos _unit select 1,500]}]; Experiment with the height coordinate, and make the respawn marker cover only the walkable area of the plane. At the least you shouldn't have players teleporting to the exact same place because it can result in a mild version of telefragging. Edited June 22, 2011 by Celery Share this post Link to post Share on other sites
farix 10 Posted June 22, 2011 I think Demon has the right idea. But his script is giving me a type nothing error when i instert 2001 as the C-130 Height Share this post Link to post Share on other sites
Zipper5 74 Posted June 22, 2011 That's because you're probably putting <2001>, rather than just 2001, due to Demonized's formatting. Anyways, Celery's solution takes the least code and works the best. Share this post Link to post Share on other sites
demonized 20 Posted June 22, 2011 what i actually meant was something like this, but i asumed it was given: {_x setPos [getPos c130name select 0, getPos c130name select 1, 2001]} foreach list thisTrigger; but yeah, celerys post is the simplest and best soultion probably, but maybe use addMPEventHandler and MPrespawn instead of regular. there is no special difference, but its more reliable afaik, only guessing on that one. must be a reason why its there, and newer :) and if you see the teleport, you can just add and play with the blackout blackin cutText in MPkilled eventhandlers. Share this post Link to post Share on other sites