• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can i command one peon to go into burrow?

You can test things in GUI, get it working, and then convert the results to Jass:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Unit - Order Peon 0017 <gen> to Right-Click Burrow 0016 <gen>
^ That trigger works.

Then here's that same trigger converted to Jass code:
vJASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call IssueTargetOrderBJ( gg_unit_opeo_0017, "smart", gg_unit_otrb_0016 )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_Untitled_Trigger_001, Player(0) )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
1743446216529.png


There shouldn't be any difference between these two functions:
vJASS:
IssueTargetOrder(whichUnit, order, targetWidget)
IssueTargetOrderBJ(whichUnit, order, targetWidget)
That means you probably messed up when setting u or burrow. Either that or you're interrupting the Order somehow.
 
You can test things in GUI, get it working, and then convert the results to Jass:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Unit - Order Peon 0017 <gen> to Right-Click Burrow 0016 <gen>
^ That works.

Then here's that same trigger converted to Jass code:
vJASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call IssueTargetOrderBJ( gg_unit_opeo_0017, "smart", gg_unit_otrb_0016 )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_Untitled_Trigger_001, Player(0) )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
There shouldn't be any difference between these two:
vJASS:
IssueTargetOrder(whichUnit, order, targetWidget)
IssueTargetOrderBJ(whichUnit, order, targetWidget)
That means you probably messed up when setting u or burrow.
If you mean the Undead ability - Burrow; that is an ability with no target
Custom script: call IssueImmediateOrderBJ( GetTriggerUnit(), your ability )
Or you can make it Gui - Issue order with no target - Undead burrow
Oh u meant Load(Burrow) Sorry ...:goblin_boom:
 
Back
Top