• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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