I've got a Medivac in my map. At map initialization, I'm trying to create a certain unit as cargo inside it, order it to move to a certain point, and then have it unload and leave. However, when it gets to the unload step, nothing actually comes out. What gives?
And I tried both 'unload', specifying the right point, and the unload and despawn commands, but both failed. I suspect the reason is because the Medivac is empty and the Unload part isn't working.
I'll test the issue order and trigger with a marine.
Edit: The unit does not receive the order somehow...
Edit2: The order seems to be invalid.... although I got the correct information. maybe it requires 2 things to work. a group of units, and a target point....
I tried looking at the campaign mission triggers (Media Blitz, specifically) where they do the same thing, have a dropship fly in and unload a unit. They put the unit under the dropship and then used Issue Order to force the Dropship to load it before flying into range. So I did that, and changed everything else so it would work the same way.
Issue Order to the Medivac, then instead of "Order: Order with No Target" use "Order: Order Targeting Point" targeting your drop point. That worked just fine for me, if it still doesn't work, try using a Marine rather than Captain Adams to see if the unit is causing the problems
As for the first step, I've already said repeatedly that I've already tried it that way and it didn't work, so I broke it apart so I could tell which part is causing the error.
Well, the only things that I can think of would be if the unit had no cargo size, but that was already mentioned. How did you make the unit, what is the unit type / flags and can you post the map?
Working on a cinematic.
I've got a Medivac in my map. At map initialization, I'm trying to create a certain unit as cargo inside it, order it to move to a certain point, and then have it unload and leave. However, when it gets to the unload step, nothing actually comes out. What gives?
@Sceptilesolarbeam: Go
check the following info:
1. I used Unload and Despawn. 2. Yes, since it does despawn. 3. ... No, that's why I'm asking.
@Sceptilesolarbeam: Go
hmmmm what's the trigger code that you're using?
It's easier to see what goes wrong with it XD
Eh, okay.
Don't make me rage!
@Sceptilesolarbeam: Go
Don't order the Medivac to move. Directly use the Drop All (or whatever is called) order to the droppoint.
@Sceptilesolarbeam: Go
uhm, you can queue up orders. like in:
Unit - Order (Unit) to (Order) (After Existing Orders)
So you won't need another trigger to catch the moment the medivac enters the drop area.
also what fr0d0b0ls0n says also works better, I didn't think of that one XD
@Sceptilesolarbeam: Go
ok now back to the question at hand:
can you check if your "Captain Adam" has a cargo size? (units without cargo size cannot be placed inside a transport unit.)
Oh hey, I didn't know that. Okay, that should do it.
As for the Drop All thing, I was getting some weird results that way. The way I had things setup was just a workaround.
Changing the cargo size didn't work, actually.
And I tried both 'unload', specifying the right point, and the unload and despawn commands, but both failed. I suspect the reason is because the Medivac is empty and the Unload part isn't working.
@Sceptilesolarbeam: Go
hmmm for me the order looks like this:
Unit - Order Medivac to (Medivac - Unload All (Medivacs) targeting (Random point in (Entire map))) (Replace Existing Orders)
Yeah, but that doesn't actually work for me, you see.
I'm pretty positive the reason is because you can't unload things if you have an empty cargo.
@Sceptilesolarbeam: Go
I'll test the issue order and trigger with a marine.
Edit: The unit does not receive the order somehow...
Edit2: The order seems to be invalid.... although I got the correct information. maybe it requires 2 things to work. a group of units, and a target point....
The real issue is still that I'm not sure why Create Cargo Units isn't working properly. That's the source of the problems.
What. The. Hell.
I tried looking at the campaign mission triggers (Media Blitz, specifically) where they do the same thing, have a dropship fly in and unload a unit. They put the unit under the dropship and then used Issue Order to force the Dropship to load it before flying into range. So I did that, and changed everything else so it would work the same way.
And just loading the unit doesn't work.
RAAAAAAGE
You're overcomplicating this, there's no need for a move order AND an unload order. Try this:
Issue Order to the Medivac, then instead of "Order: Order with No Target" use "Order: Order Targeting Point" targeting your drop point. That worked just fine for me, if it still doesn't work, try using a Marine rather than Captain Adams to see if the unit is causing the problems
As for the first step, I've already said repeatedly that I've already tried it that way and it didn't work, so I broke it apart so I could tell which part is causing the error.
Yes, the particular unit is causing the problem.
Well, the only things that I can think of would be if the unit had no cargo size, but that was already mentioned. How did you make the unit, what is the unit type / flags and can you post the map?
Oops.