Actually with Hercules-based load-unload but should be the same. I create cargo unit SCV through triggers inside Medivac and again with a trigger action order it to repair/tried order Smart Command the same Medivac but nothing happens. I did tick Passenger Acquired Transport on the flags of the SCV Repair ability. Does anyone know what's wrong?
Thanks to Vailreth for explaining how. So firstly it requires creating a custom ability of type Redirect - Target, choose SCV - Repair as the ability for the redirect ability, State: Available, Default Button: Repair. Add the Redirect ability to the Medivac or whichever transport, no need for command button for the unit that will use the Redirect. Tick the flags of the SCV - Repair that are Auto Cast On and Passenger Acquired Transport, change the Auto-Cast and Target Filters where it says Visilibility from 'Required' to 'Allowed'. In the SCV - Repair Effect remove HiddenCompareBA validator (but keep HiddenCompareAB) and add the triggers where you will command the repair:
Player - Modify player 1 Minerals: Add 1000
Player - Modify player 1 Vespene: Add 1000
Unit - Create 1 SCV as cargo in Medivac [127.23, 125.98]
Unit - Order Medivac [127.23, 125.98] to (Turn Repair auto cast On) (Replace Existing Orders)
Actually with Hercules-based load-unload but should be the same. I create cargo unit SCV through triggers inside Medivac and again with a trigger action order it to repair/tried order Smart Command the same Medivac but nothing happens. I did tick Passenger Acquired Transport on the flags of the SCV Repair ability. Does anyone know what's wrong?
Thanks to Vailreth for explaining how. So firstly it requires creating a custom ability of type Redirect - Target, choose SCV - Repair as the ability for the redirect ability, State: Available, Default Button: Repair. Add the Redirect ability to the Medivac or whichever transport, no need for command button for the unit that will use the Redirect. Tick the flags of the SCV - Repair that are Auto Cast On and Passenger Acquired Transport, change the Auto-Cast and Target Filters where it says Visilibility from 'Required' to 'Allowed'. In the SCV - Repair Effect remove HiddenCompareBA validator (but keep HiddenCompareAB) and add the triggers where you will command the repair:
Player - Modify player 1 Minerals: Add 1000
Player - Modify player 1 Vespene: Add 1000
Unit - Create 1 SCV as cargo in Medivac [127.23, 125.98]
Unit - Order Medivac [127.23, 125.98] to (Turn Repair auto cast On) (Replace Existing Orders)