I've triggered abilities hundreds or thousands of times but I can't seem to get my unit to use a custom ability based on Flare. I have Check Dependencies set to False on the custom ability, I've removed the Flare tech requirement (redundant), and ensured the mana cost is 0. The only other field I changed on my custom flare is to set Cooldown to 0, yet my unit will never use the Flare.
I've tried switching the ability out for other abilities and issuing the appropriate order (Blizzard, etc.) and everything works fine, and I've even swapped my Dummy to a mortar team and commented out the expiration and verified that I can select the unit, see the ready to cast custom Flare, and cast it myself. I've even tried adding a .01 second wait out of despearation, but I can't seem to figure out why I can't get a unit to use Flare with this command. Is this a known bug?
(Edit: I should also note that my dummy unit is spawning at my caster position correctly, and I've printed out the target position and it is correctly being set. This is a big redundant since I mentioned it works with other spells and order combinations, but just wanted to mention it in case anyone was wondering.)
)
I've tried switching the ability out for other abilities and issuing the appropriate order (Blizzard, etc.) and everything works fine, and I've even swapped my Dummy to a mortar team and commented out the expiration and verified that I can select the unit, see the ready to cast custom Flare, and cast it myself. I've even tried adding a .01 second wait out of despearation, but I can't seem to figure out why I can't get a unit to use Flare with this command. Is this a known bug?
(Edit: I should also note that my dummy unit is spawning at my caster position correctly, and I've printed out the target position and it is correctly being set. This is a big redundant since I mentioned it works with other spells and order combinations, but just wanted to mention it in case anyone was wondering.)
-
Flare
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Flare
-
-
Actions
-
Set VariableSet FlareCast_POS = (Position of (Triggering unit))
-
Set VariableSet FlareCast_Target_POS = (Position of (Target unit of ability being cast))
-
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at FlareCast_POS facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Flare (Dummy) to (Last created unit)
-
Unit - Order (Last created unit) to Human Mortar Team - Flare FlareCast_Target_POS
-
Custom script: FlareCast_POS = nil
-
Custom script: FlareCast_Target_POS = nil
-
-

Last edited: