• 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!

What to type in Custom Script to cast Storm Bolt?

Status
Not open for further replies.
Go to unit actions and find:
Unit - Issue Order Targetting A Unit.
Select which unit should be the target, and which the caster. From filter of actions, select Human - Mountain King - Storm Bolt.
  • Unit - Order caster to Human - Mountain King: Storm Bolt target
For custom script see:
JASS:
native IssueTargetOrderById         takes unit whichUnit, integer order, widget targetWidget returns boolean
// Or
native IssueTargetOrder             takes unit whichUnit, string order, widget targetWidget returns boolean
In GUI it would look like this:
  • Custom script: call IssueTargetOrderById (udg_casterm, 852095, udg_target)
Number 852095 is the Id of thunderbolt spell. Or, for second one:
  • Custom script: call IssueTargetOrder (udg_caster, "thunderbolt", udg_target
 
Status
Not open for further replies.
Top