• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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?
 
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.
Back
Top