Forum Jump :

Author Message


Posts: 17
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#178401 Posted at 2015-04-01 19:45        
     
My plan was to simulate the events of blackhawk down, so I spawned in a crap ton of units. I gave them all unique names, and I copied down the

"opfor_group setCombatMode "red"; wpt_red = opfor_group addWaypoint [getPosATL helo,30]; wpt_red setWaypointType "SAD"; wpt_red setWaypointSpeed "full";"

code (changing the name for each group). However, when the heli got shot down, only one group moved to the locatin. Any ideas?

Other than that, your code worked like a charm!!

Added 8 minutes later:

Here is the code I have inserted:
opfor_group setCombatMode "red";
 wpt_red = opfor_group addWaypoint [getPosATL helo,30]; 
wpt_red setWaypointType "SAD"; wpt_red setWaypointSpeed "full";
 opfor_group_1 setCombatMode "red";
 wpt_red = opfor_group_1 addWaypoint [getPosATL helo,30];
 wpt_red setWaypointType "SAD"; 
wpt_red setWaypointSpeed "full";
 opfor_group_1_1 setCombatMode "red"; 
wpt_red = opfor_group_1_1 addWaypoint [getPosATL helo,30];
 wpt_red setWaypointType "SAD"; 
wpt_red setWaypointSpeed "full"; opfor_group_1_2 setCombatMode "red"; 
wpt_red = opfor_group_1_2 addWaypoint [getPosATL helo,30]; 
wpt_red setWaypointType "SAD";
 wpt_red setWaypointSpeed "full";
opfor_group_1_3 setCombatMode "red";   
wpt_red = opfor_group_1_3 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";
   opfor_group_1_4 setCombatMode "red";
   wpt_red = opfor_group_1_4 addWaypoint [getPosATL helo,30];
   wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";
 opfor_group_2 setCombatMode "red"; 
  wpt_red = opfor_group_2 addWaypoint [getPosATL helo,30];
   wpt_red setWaypointType "SAD"; 
  wpt_red setWaypointSpeed "full";   
opfor_group_3 setCombatMode "red"; 
  wpt_red = opfor_group_3 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD"; 
  wpt_red setWaypointSpeed "full";
 opfor_group_3 setCombatMode "red"; 
  wpt_red = opfor_group_3 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";
   opfor_group_3_1 setCombatMode "red"; 
  wpt_red = opfor_group_3_1 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";  
 wpt_red setWaypointSpeed "full"; 
  opfor_group_3_2 setCombatMode "red";
   wpt_red = opfor_group_3_2 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";  
 wpt_red setWaypointSpeed "full";
   opfor_group_3_1_3 setCombatMode "red";
   wpt_red = opfor_group_3_1_3 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";   
wpt_red setWaypointSpeed "full";  
 opfor_group_3_4 setCombatMode "red";   
wpt_red = opfor_group_3_4 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD"; 
  wpt_red setWaypointSpeed "full";   opfor_group_3_1_5 setCombatMode "red";
   wpt_red = opfor_group_3_1_5 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";  
 wpt_red setWaypointSpeed "full";   
opfor_group_3_6 setCombatMode "red";   
wpt_red = opfor_group_3_6 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";   wpt_red setWaypointSpeed "full"; 
  opfor_group_3_7 setCombatMode "red";  
 wpt_red = opfor_group_3_7 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";   wpt_red setWaypointSpeed "full"; 
  opfor_group_3_8 setCombatMode "red"; 
  wpt_red = opfor_group_3_8 addWaypoint [getPosATL helo,30];
   wpt_red setWaypointType "SAD";   wpt_red setWaypointSpeed "full"; 
  opfor_group_3_9 setCombatMode "red"; 
  wpt_red = opfor_group_3_9 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";   
opfor_group_3_10 setCombatMode "red";  
 wpt_red = opfor_group_3_10 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";  
 opfor_group_3_11 setCombatMode "red";
   wpt_red = opfor_group_3_11 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";   wpt_red setWaypointSpeed "full"; 
  opfor_group_3_12 setCombatMode "red";  
 wpt_red = opfor_group_3_12 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD";
   wpt_red setWaypointSpeed "full";  
 opfor_group_3_13 setCombatMode "red";  
 wpt_red = opfor_group_3_13 addWaypoint [getPosATL helo,30]; 
  wpt_red setWaypointType "SAD"; 
  wpt_red setWaypointSpeed "full";
t2 setCombatMode "red";   
wpt_red = t2 addWaypoint [getPosATL helo,30];  
 wpt_red setWaypointType "SAD";   
wpt_red setWaypointSpeed "full"; 

Will the spaces in the code causes problems? There seem to be a few added in from the copy + paste from Notepad


Modedit:
Code goes between code tags......

This post was edited by Foxhound (2015-04-02 20:25, ago)