• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

how to order cast spells?

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2010
Messages
950
k i need to be able to cast reveal but thats not on the gui list of things that can be casted so i know theres a script for it but i forget the number.

this is the script for casting flare at a location point
set location to Point1

call IssuePointOrderByIdLoc (GetLastCreatedUnit(), 852060, udg_Point1)

but i need the number code for reveal and how do i find such a thing out?
 
Level 10
Joined
Jul 12, 2009
Messages
321
but i need the number code for reveal and how do i find such a thing out?

Give a unit the spell and put it in a map.

Make a trigger like this:
  • Get Order ID
    • Events
      • Unit - A unit is issued an order targeting a point
    • Conditions
    • Actions
      • Custom script: call BJDebugMsg(I2S(GetIssuedOrderId()))
Play the map and make the unit cast the ability. Write down the number.
 
Status
Not open for further replies.
Top