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

What to type in Custom Script to cast Storm Bolt?

Not open for further replies.


Code Reviewer
Level 26
Mar 19, 2008
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:
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
Not open for further replies.