TransferFuel
Transfer fuel (as tanker)
Usage: Used in 7 task(s)
Lua Implementation
-- Transfer Fuel
function execute(params)
local receiver = params.receiver
local amount = params.amount
if receiver and receiver:isValid() then
-- Simulate fuel transfer
local currentFuel = this:getFuel()
if currentFuel >= amount then
this:setFuel(currentFuel - amount)
receiver:setFuel(receiver:getFuel() + amount)
return true
end
end
return false
end
Tasks Using This Action (7)
Transportation Hub Destruction
Strategic Bombing (AIR DOMAIN)
Supply Line Interdiction
Deep Strike/Interdiction (AIR DOMAIN)
Railway Yard Destruction
Deep Strike/Interdiction (AIR DOMAIN)
Forward Arming and Refueling Point (FARP) Targeting
Airfield Attack (AIR DOMAIN)
Forward Resupply Operations
Logistics and Sustainment (LAND DOMAIN)
Supply Route Security
Logistics and Sustainment (LAND DOMAIN)
Interdiction Fires
Artillery and Fires Operations (LAND DOMAIN)