• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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
318
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