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

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