• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Disabling Autocast

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Trying to make a damage-based ability but i dont want it to be autocasted. I tried

JASS:
function Trig_No_Autocast_Fierce_Blow_Actions takes nothing returns nothing
    call IssueImmediateOrder( GetTriggerUnit(), "uncoldarrows" )
    call print("1")
endfunction

but it still autocasted. Any suggestions
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
What exactly are you trying to make which requires using an autocastable skill in the first place?

An ability like searing arrows but with a cooldown :)

(if you stand/hold position and autoattack, the cooldown will not apply)
 
You might be interested in this:
http://www.hiveworkshop.com/forums/jass-resources-412/snippet-autocastorderevent-151064/#post1388720

It has a list of some autocast orders. I know, I know, it doesn't have an issue to enable/disable an autocast. However, you can use that snippet as a reference to see what to input for the order:
JASS:
call IssueImmediateOrderById(u, 0x114) // Cold Arrows
I haven't tested it, but it is worth a shot. Note that this will only function if cold arrows is your base ability. If a different ability is your base, then change the id accordingly.
 
Status
Not open for further replies.
Top