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

Status
Not open for further replies.

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
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