Results 1 to 3 of 3

Thread: GPS Marker on the Map

  1. #1

    GPS Marker on the Map

    Hi,
    I made a MP map (on Utes) with 20 men on the east side and 20 on the west (both sides are playable).
    Now id like to put GPS Markers on them. when a unit dies...the marker should change the color into red. I tried a couple of scripts but without success.
    Please check the script for me.
    PHP Code:
    #Start
    if (side player == westthen {"Goto "West";} else {"Goto "Ost";}
    ;
    BLUEFOR
    #West
    If(alive Soldat_west1)Then{"Marker_west1" setMarkerPos getpos Soldat_west1}
    Else{
    "Marker_west1" setMarkerColor "ColorRed"};
    If(
    alive Soldat_west2)Then{"Marker_west2" setMarkerPos getpos Soldat_west2}
    Else{
    "Marker_west2" setMarkerColor "ColorRed"};
    If(
    alive Soldat_west3)Then{"Marker_west3" setMarkerPos getpos Soldat_west3}
    Else{
    "Marker_west3" setMarkerColor "ColorRed"};
    ~
    0.5
    Goto 
    "West";
    ;
    OPFOR
    #Ost
    If(alive Soldat_ost1)Then{"Marker_ost1" setMarkerPos getpos Soldat_ost1}
    Else{
    "Marker_ost1" setMarkerColor "ColorRed"};
    If(
    alive Soldat_ost2)Then{"Marker_ost2" setMarkerPos getpos Soldat_ost2}
    Else{
    "Marker_ost2" setMarkerColor "ColorRed"};
    If(
    alive Soldat_ost3)Then{"Marker_ost3" setMarkerPos getpos Soldat_ost3}
    Else{
    "Marker_ost3" setMarkerColor "ColorRed"};
    ~
    0.5
    "Goto "Ost"; 
    Thanks

  2. #2

  3. #3
    im no sqs expert but your goto looks wrong


    "goto "Ost"
    Last edited by nuxil; Dec 3 2009 at 09:57.

Posting Permissions

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