hi, im trying to make a hercules only be able to load/unload units while landed. I tried making two differnt abilities, but that didnt work as i would load when the thing was landed, then lift off to flyer mode and it would drop the units out, i guess because the two abilities are different. So i think i have to use one ability for both modes, anyone know a way to set a state requirement so that unload/load can only take place when its landed, but can still carry the units around when flying. The unload/load and carrying units kind of goes hand in hand in the ability so having a hard time with it. Thanks
I'm not sure if this is the solution, just trying to give an idea for a possible solution for you to try.
What about removing the ability of loading and unloading on the unit (while keeping the cargo area). Then you can have a custom button that runs a custom trigger that can only be used when its in the landed state.
The trigger would basically be used to load and unload the units. You could even have a separate button for each.
@caspersc: Go
To have a Cargo, you must give your unit the Load/Unload ability, and regardless wether you give buttons on the command card, it can still pick up or drop off units by right clicking onto the ship or right clicking the Cargo's wireframes.
If you give your landed Hercules the Load/Unload ability, but not the flying Hercules the Load/Unload, it will 'unload' all cargo immediately when morphing, regardless if you set Cargo to 0, 1 or 26000.
I once made a Hercules that could land. One thing I couldn't get to work is only picking up/dropping off units while landed. That was quite a while back, but in hindsight I probably could have used a validator on the ability checking for unit height(in this case, checking the Hercules height).
Yea well my reasoning for using a morph is the fact that the unit will not have the same mover, collision flags etc for the two different states, validators for the transport ability is obviously needed. e.g if unit type is Hercules (Air)
I realize this is a little late, but I managed to do exactly this in a map. You need to create a Validator which requires that the Caster be a ground unit, and then make both Loading and Unloading on the Herc's ability use that. For cosmetic purposes, you should also remove the Load/Unload buttons on the Flying variant of the Hercules.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hi, im trying to make a hercules only be able to load/unload units while landed. I tried making two differnt abilities, but that didnt work as i would load when the thing was landed, then lift off to flyer mode and it would drop the units out, i guess because the two abilities are different. So i think i have to use one ability for both modes, anyone know a way to set a state requirement so that unload/load can only take place when its landed, but can still carry the units around when flying. The unload/load and carrying units kind of goes hand in hand in the ability so having a hard time with it. Thanks
@lemmy734: Go
I'm not sure if this is the solution, just trying to give an idea for a possible solution for you to try.
What about removing the ability of loading and unloading on the unit (while keeping the cargo area). Then you can have a custom button that runs a custom trigger that can only be used when its in the landed state.
The trigger would basically be used to load and unload the units. You could even have a separate button for each.
@xDiehard666x: Go
Would implement the unit as a morph instead, no need for any triggers here.
@caspersc: Go To have a Cargo, you must give your unit the Load/Unload ability, and regardless wether you give buttons on the command card, it can still pick up or drop off units by right clicking onto the ship or right clicking the Cargo's wireframes.
If you give your landed Hercules the Load/Unload ability, but not the flying Hercules the Load/Unload, it will 'unload' all cargo immediately when morphing, regardless if you set Cargo to 0, 1 or 26000.
I once made a Hercules that could land. One thing I couldn't get to work is only picking up/dropping off units while landed. That was quite a while back, but in hindsight I probably could have used a validator on the ability checking for unit height(in this case, checking the Hercules height).
You might want to try that.
@BorgDragon: Go
Yea well my reasoning for using a morph is the fact that the unit will not have the same mover, collision flags etc for the two different states, validators for the transport ability is obviously needed. e.g if unit type is Hercules (Air)
I realize this is a little late, but I managed to do exactly this in a map. You need to create a Validator which requires that the Caster be a ground unit, and then make both Loading and Unloading on the Herc's ability use that. For cosmetic purposes, you should also remove the Load/Unload buttons on the Flying variant of the Hercules.