delenda-delenda / bti-issues

0 stars 0 forks source link

Can't get crates or load troops from Huey spawn point #5

Open Overcaffed opened 3 years ago

Overcaffed commented 3 years ago

From the Huey spawn point, Radio > CTLD > Ground Forces > [any crate] responds with "You are not close enough to friendly logistics to get a crate".

Similarly, attempting to load troops via Troop transport responds with "You are not in a pickup zone"

Overcaffed commented 3 years ago

😢

delenda-delenda commented 2 years ago

"You are not close enough to friendly logistics to get a crate" pops up when you're not in a logistics zone:

   if ctld.inLogisticsZone(_heli) == false then

                ctld.displayMessageToGroup(_heli, "You are not close enough to friendly logistics to get a crate!", 10)

                return
            end

which is a function that checks your distance to a unit in this list:

for _, _name in pairs(ctld.logisticUnits) do

Which looks like:

ctld.logisticUnits = {
    "logistic1",
    "logistic2",
    "logistic3",
    "logistic4",
    "logistic5",
    "logistic6",
    "logistic7",
    "logistic8",
    "logistic9",
    "logistic10",
}

There was a HEMTT truck right by the CTLD pickup zone which I've now renamed to logistic1, so this should now be fixed.

delenda-delenda commented 2 years ago

As for the troop loading...

There already was a pickup zone for CTLD:

image

but code mentions:

-- If a zone isn't ACTIVE then you can't pickup from that zone until the zone is activated by ctld.activatePickupZone
-- using the Mission editor

So we now have a trigger to activate that pickup zone:

image