Hello,
Ive been fucking arround with the drones manager for ages but i can't get it work like the new drones manager!
This my current code:
How can i make it work like the new dronesmanager?
Ive been fucking arround with the drones manager for ages but i can't get it work like the new drones manager!
This my current code:
Code:
_loc8_ = _loc5_[_loc7_];
_loc9_ = _loc8_.split(",");
_loc10_ = String(_loc9_[0]).split("");
_loc11_ = _loc10_[0];
_loc12_ = _loc10_[1];
if(_loc6_ == 1)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
}
if(_loc6_ == 2)
{
if(_loc7_ == 0)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
}
else if(_loc7_ == 1)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
}
}
if(_loc6_ == 3)
{
if(_loc7_ == 0)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
}
else if(_loc7_ == 1)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
}
else if(_loc7_ == 2)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
}
}
if(_loc6_ == 4)
{
if(_loc7_ == 0)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
}
else if(_loc7_ == 1)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
}
else if(_loc7_ == 2)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
}
else if(_loc7_ == 3)
{
this.addDrone(param1,_loc3_,DroneConnector.POSITION_DOWN,_loc11_,_loc12_);
}
}
_loc7_++;
}
_loc15_++;
}
}