How can i command one peon to go into burrow?

Level 5
Joined
Feb 22, 2025
Messages
78
call IssueTargetOrder(u, "smart", burrow)

it does not go...
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
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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.
 
Level 5
Joined
Feb 22, 2025
Messages
78
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:
 
Top