splice(0, 3);
								}
								
								// make array from arraystring for units and find the actual units from the id's
								var units = [];
								var i = 0;
								for(i = 0; i < orders.length && typeof orders[i] == "number"; i++)
								{
									var newUnit = game.getUnitById(orders[i]);
									if(newUnit)
										units.push(newUnit);
								}
								
								orders.splice(0, i);
								
								// issue order
								if(targetAvailable)
									game.issueOrderToUnits(units, order, targ