Go Back > Developer's Corner > General Development
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Search this Thread Display Modes
Old 09-03-2010, 04:51 AM   #1
Junior Member
Join Date: Aug 2010
Posts: 7
Default Disable Healing

Is it possible to disable Medivac healing to certain units using triggers on the fly?
Zurom is offline   Reply With Quote
Old 09-03-2010, 01:53 PM   #2
Junior Member
Join Date: Apr 2010
Posts: 9

I'd say the easiest way to disable the healing is to make a require an upgrade and then use triggers to toggle that upgrade. It's what I did in wc3.

To add a requirement to something find the appropriate ability, then go to its Commands+ section and change the main ability requirements yourself.

For example to give a requirement to heal find Medivac unit. Click on Medivac and in your Object explorer find ability called Medivac - Heal, right click on Medivac - Heal and select View Linked Object.
Once you are in Medivac - Heal ability, go to Ability - Commands+. Once there you will see two commands Execute and cancel. Add some requirement to Execute and voila now your ability is disabled until the requirement is met. However this has the problem of leaving a disabled version of your ability.
Belphegor is offline   Reply With Quote
Old 09-03-2010, 05:53 PM   #3
Alevice's Avatar
Join Date: Apr 2010
Posts: 56

Use validators instead. They are checked before an execution happens, much the reason the medivac healing stops when the unit is at full health (without that validator it could heal non stop, not that it would help at all).
Alevice is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT. The time now is 12:38 AM.

Powered by vBulletin
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.