mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-28 01:30:49 +00:00
11 lines
404 B
Lua
11 lines
404 B
Lua
|
|
local CargoEngineer = UNIT:FindByName( "Engineer" )
|
|
local InfantryCargo = AI_CARGO_UNIT:New( CargoEngineer, "Engineer", "Engineer Sven", "81", 2000, 25 )
|
|
|
|
local CargoCarrier = UNIT:FindByName( "Carrier" )
|
|
|
|
-- This will Load immediately the Cargo into the Carrier, regardless where the Cargo is.
|
|
InfantryCargo:Load( CargoCarrier )
|
|
|
|
-- This will Unboard the Cargo from the Carrier.
|
|
InfantryCargo:UnBoard() |