Jump to content
Sign in to follow this  
mwsteve

How to make Marker Follow Vehicle

Recommended Posts

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

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 by mwsteve

Share this post


Link to post
Share on other sites

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 by IceShade

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×