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

[JASS] PrintAnyOrder

Status
Not open for further replies.
Level 9
Joined
May 28, 2007
Messages
365
Here.

CnP straight from my map, I hope you can how to import.

(Create a trigger called Order Finder and paste this code in).

JASS:
function Trig_Order_Finder_Actions takes nothing returns nothing       
    call BJDebugMsg("["+GetUnitName(GetTriggerUnit())+"] issued order [|cffFFFF00"+I2S(GetIssuedOrderId())+"|r] (|cffFF8040"+OrderId2String(GetIssuedOrderId())+"|r)")
endfunction

//===========================================================================
function InitTrig_Order_Finder takes nothing returns nothing
    set gg_trg_Order_Finder = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Order_Finder, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Order_Finder, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Order_Finder, EVENT_PLAYER_UNIT_ISSUED_ORDER )
    call TriggerAddAction( gg_trg_Order_Finder, function Trig_Order_Finder_Actions )
endfunction
 
Status
Not open for further replies.
Top