Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variable iterator DroneIterator
- variable index:activedrone ActiveDroneList
- Me:DoGetActiveDrones[ActiveDroneList]
- ActiveDroneList:GetIterator[DroneIterator]
- echo "ActiveDroneList.Used:" ${ActiveDroneList.Used}
- variable index:int returnIndex
- variable index:int engageIndex
- do
- {
- if ${DroneIterator.Value.ToEntity.ShieldPct} < 80 || \
- ${DroneIterator.Value.ToEntity.ArmorPct} < 50 || \
- ${DroneIterator.Value.ToEntity.StructurePct} < 80
- {
- UI:UpdateConsole["Recalling Damaged Drone ${DroneIterator.Value.ID}"]
- ;UI:UpdateConsole["Debug: Shield: ${DroneIterator.Value.ToEntity.ShieldPct}, Armor: ${DroneIterator.Value.ToEntity.ArmorPct}, Structure: ${DroneIterator.Value.ToEntity.StructurePct}"]
- returnIndex:Insert[${DroneIterator.Value.ID}]
- This.WaitingForDrones:Set[20]
- }
- else
- {
- ;UI:UpdateConsole["Debug: Engage Target ${DroneIterator.Value.ID}"]
- engageIndex:Insert[${DroneIterator.Value.ID}]
- }
- }
- while ${DroneIterator:Next(exists)}
- echo "returnIndex.Used:" ${returnIndex.Used}
- EVE:DronesReturnToDroneBay[returnIndex]
- echo "engageIndex.Used:" ${engageIndex.Used}
- EVE:DronesEngageMyTarget[engageIndex]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement