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: "doMove" with a group, how?  (Read 1028 times)

0 Members and 1 Guest are viewing this topic.

Offline Pellejones

  • Members
  • *
  • Yes, well... what?
"doMove" with a group, how?
« on: 08 Aug 2004, 19:41:09 »
How do I issue a "doMove" command to a group that is spawned?

Here's an example
Quote
"SoldierWB" createunit [getpos spawn1,group1]
~1
"SoldierWB" createunit [getpos spawn1,group1]
~1
"SoldierWB" createunit [getpos spawn2,group1]
~1
"SoldierWB" createunit [getpos spawn2,group2]
~1
"SoldierWB" createunit [getpos spawn2,group2]
~1
"SoldierWB" createunit [getpos spawn2,group2]

The group spawns. And at their position of spawning I place a trigger that does this:
Quote
[group1] doMove getMarkerPos "WP1"; [group2] doMove getMarkerPos "WP1";

What happens? well the first spawn in each group move to the maker, the rest of them just stand there like bafoons.

I tried to put a delay on the trigger, but that din't help.

Please help.
« Last Edit: 08 Aug 2004, 19:48:03 by Pellejones »

Offline Mud_Spike

  • Contributing Member
  • **
Re:"doMove" with a group, how?
« Reply #1 on: 08 Aug 2004, 20:07:41 »
'move' is probably what you want since it creates a new waypoint for the entire group. Look it up in the comref.

Or you could use:
Code: [Select]
"_x doMove GetMarkerPos {foo}" foreach units mygrp