mwsteve 10 Posted June 8, 2009 Hi, i got a question as i can't figure this one out myself. How to make marker follow the Vehicle. I want to make a mobile respawn point according to this likhttp://caf.low-ping.com/forums/?page=post&id=189257&fid=158978 but i want somehow to attach the marker with name "respawn_west" to Vehicle (LavMHQ) to make it work as a kind of mobile respawn. Share this post Link to post Share on other sites
Wass 0 Posted June 8, 2009 that is not editing thread, but use http://community.bistudio.com/wiki/setMarkerPos like "markerone" setmarkerpos [getpos vehicle_x select 0, getpos vehicle_x select 1] Share this post Link to post Share on other sites
mwsteve 10 Posted June 8, 2009 (edited) Part of it works, It sets the marker at the vehicle even though i put this marker far away for a test, but the problem is that if i move the vehicle, (mhq) take it to other location and get out. I press Respawn button and im respawned at the location the mhq was previously standing. To put it briefly marker does not move with the vehicle. Please help as im not that good in editing :o :( Nvm i got it to work its a spartan method but it works, I use triggers when mhq comes into the trigger 200 m around the city the marker is moved to its position, and when it leaves the trigger the respawn marker comes back to base :] Thanks Edited June 8, 2009 by mwsteve Share this post Link to post Share on other sites
IceShade 0 Posted June 10, 2009 (edited) You could just make a tiny little script that does it for you.. while {true} do { "respawn_west" setmarkerpos (getpos Guy); sleep 5; }; Or you could replace "true" with a variable, like one that checks whether the LAV-25 is still alive (you don't want the script to keep looping if it has no effect), because right now it will loop forever. It will update every 5 seconds. Edit: Might as well throw this in the editing section. Edited June 10, 2009 by IceShade Share this post Link to post Share on other sites
stuguy 15 Posted November 9, 2009 You could just make a tiny little script that does it for you.. while {true} do { "respawn_west" setmarkerpos (getpos Guy); sleep 5; }; Or you could replace "true" with a variable, like one that checks whether the LAV-25 is still alive (you don't want the script to keep looping if it has no effect), because right now it will loop forever. It will update every 5 seconds. Edit: Might as well throw this in the editing section. I got this guy working too. The problem with my script is that when I blow up the vehicle, I can't delete the marker with this script: "respawn_west" setmarkerpos [getpos hmmwvmed1 select 0, getpos hmmwvmed1 select 1]; while {alive hmmwvmed1} do {"respawn_west" setmarkerpos (getpos hmmwvmed1); sleep 5;}; ; }; _killspawnusmc = alive hmmwvmed1; if (not _killspawnusmc) then { deletemarker "respawn_west"; }; Share this post Link to post Share on other sites