Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Marker following group  (Read 3668 times)

0 Members and 1 Guest are viewing this topic.

Offline Delta83_DK

  • Members
  • *
Marker following group
« on: 20 Jan 2012, 23:04:07 »
Hi Guys.

I am trying to make a marker follow a group, so I can track them on the map.

I can make it work with a single unit with this command :

Code: [Select]
"Marker_Man1" SetMarkerType "InfantryTeam"
"Marker_Man1" SetMarkerColor "ColorBlue"
"Marker_Man1" SetMarkerPos GetPos Man1

But I want it to work with every unit in a group, so I tried this code :

Code: [Select]
{_x SetMarkerPos "Marker_EnemyGrp1"} GetPos ForEach units group1
But nothing happens, any ideas?

Offline F2kSel

  • Members
  • *
Re: Marker following group
« Reply #1 on: 21 Jan 2012, 15:07:54 »
First the code is wrong it should be

Code: [Select]
{"Marker_EnemyGrp1" SetMarkerPos  getpos _x} ForEach units group1
However it will only display one marker for the whole group you will need to create a separate marker for each unit.

Offline Delta83_DK

  • Members
  • *
Re: Marker following group
« Reply #2 on: 21 Jan 2012, 18:11:59 »
Thx for reply  :)