HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stop Autocasting?

02-27-2009, 04:51 AM#1
Blackroot
Can anyone clue me in on how to order a unit to stop autocasting? I've tried everything I can think of, but it just won't stop.

Here's what I've tried:

Expand JASS:

45 minutes of searching for functions or orders I can send; no luck =x.

It's kind of aggrivating; nothing I do seems to work T_T. Any ideas?
02-27-2009, 05:19 AM#2
Pyrogasm
This should work:
Collapse JASS:
call UnitRemoveAbility(u, 'A000')
call UnitAddAbility(u, 'A000')
call MakeAbilityPermanent(u, 'A000', true)
02-27-2009, 05:26 AM#3
Blackroot
Quote:
Originally Posted by Pyrogasm
This should work:
Collapse JASS:
call UnitRemoveAbility(u, 'A000')
call UnitAddAbility(u, 'A000')
call MakeAbilityPermanent(u, 'A000', true)

It doesn't =x.
02-27-2009, 05:27 AM#4
fX_
By "autocasting" do you mean automatically acquiring a target and casting it? Or do you mean activating autocast?
02-27-2009, 05:30 AM#5
Blackroot
Quote:
Originally Posted by fX_
By "autocasting" do you mean automatically acquiring a target and casting it? Or do you mean activating autocast?

Acitvating it; i want a way to be able to enable/disable autocast via triggers.
02-27-2009, 05:45 AM#6
Pyrogasm
That's dumb. Removing the ability should turn off the autocast.

Try removing it, ordering the unit to stop, then adding it and making it permanent.
02-27-2009, 06:00 AM#7
Blackroot
Quote:
Originally Posted by Pyrogasm
That's dumb. Removing the ability should turn off the autocast.

Try removing it, ordering the unit to stop, then adding it and making it permanent.

It is very dumb =x.

Expand JASS:

Doesn't work with or without the pauses. Bleh; blizzard is weird.
02-27-2009, 07:08 AM#8
Blackroot
Quote:
Originally Posted by Litany
Why not use the "off" order string? All autocast abilities have one.

I tried that; it doesn't work.
02-27-2009, 09:41 AM#9
DioD
Post map.

There is no problems with autocast.

Removing and ordering stop it.
02-27-2009, 10:45 AM#10
xombie
Yea, I would think IssueImmedaiteOrder(<unit>, "faeriefireoff") would deactivate the auto-cast. You're sure these methods don't work?

In fact, it does. At least, issuing the immediate "healon" or "healoff" orders both toggle the auto-cast automatically. Its kind of neat.
02-27-2009, 08:15 PM#11
Blackroot
Expand JASS:

The correct unit is receiving the order; it fires correctly when toggled. The unit has an ability based on FaerieFire.

\/ MAP: Ability is called Awesomewin; The trigger is called Awesome under General Examples.
Attached Files
File type: w3xBlackSystems.w3x (107.1 KB)
02-27-2009, 09:54 PM#12
xombie
Quote:
Originally Posted by Litany
It works perfectly. Keep trying.

Indeed it does. There is no problem with issuing autocast orders, so you must be having a different issue in your map.
02-27-2009, 11:52 PM#13
Bobo_The_Kodo
Durrrrrrrr

fixed your map thing
Attached Files
File type: w3xBlackSystems.w3x (106.6 KB)