Results 1 to 5 of 5

Thread: How to make Marker Follow Vehicle

  1. #1
    Private First Class
    Join Date
    Jun 2 2009
    Location
    Poland > Lublin
    Posts
    12

    Lightbulb How to make Marker Follow Vehicle

    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...257&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.

  2. #2
    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]
    Yep, I'm one of those very bad and blood-thirsty Russians



  3. #3
    Private First Class
    Join Date
    Jun 2 2009
    Location
    Poland > Lublin
    Posts
    12
    Author of the Thread
    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

    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
    Last edited by mwsteve; Jun 8 2009 at 15:23.

  4. #4
    You could just make a tiny little script that does it for you..

    Code:
    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.
    Last edited by IceShade; Jun 10 2009 at 17:26.

  5. #5
    Quote Originally Posted by IceShade View Post
    You could just make a tiny little script that does it for you..

    Code:
    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:

    Code:
    "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";
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •