Issuing a dummy unit an item ability

Dinowc

don't expect anything, prepare for everything
Reaction score
223
yes using the spell's ID
it's done with a custom script
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
The one on "Moonstone"?

Custom script: call IssueImmediateOrderById(bj_lastCreatedUnit, 852621)


How to get those numbers:
Put a unit on the map, give it the ability, cast it.

Along with this trigger:
Trigger:
  • Get Order ID
    • Events
      • Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
      • Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
      • Unit - A unit owned by Player 1 (Red) Is issued an order with no target
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (Order: + (String((Issued order))))
      • Custom script: call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Order ID: " + I2S(GetIssuedOrderId()))


After that, it depends on what target it was, as each one has a different "IssueOrder" function...
 

snmiglight

Active Member
Reaction score
3
i was about to ask you how you get those numbers.. then you edited it... anyways thanks a lot and +rep!

EDIT: oh.. i need to spread some reps before give it again to you.. sorry..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top