What can I do with GetTriggeringRegion ?

Jedi

New Member
Reaction score
63
JASS:
function SpawnActions takes nothing returns nothing
    local region re = GetTriggeringRegion()
    
    //And ?
    
    
endfunction

function InitTrig_Spawn takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_1_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_2_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_3_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_4_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_5_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_6_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_7_Spawn)
    call TriggerRegisterEnterRectSimple(t, gg_rct_Player_8_Spawn)
    call TriggerAddAction(t, function SpawnActions)
endfunction
 

Bribe

vJass errors are legion
Reaction score
67
Hold the phone, what would you like to do with it?

You're not getting the triggering rect, just the region, keep that in mind.

Here is the region api:

JASS:
native CreateRegion             takes nothing returns region
native RemoveRegion             takes region whichRegion returns nothing

native RegionAddRect            takes region whichRegion, rect r returns nothing
native RegionClearRect          takes region whichRegion, rect r returns nothing

native RegionAddCell           takes region whichRegion, real x, real y returns nothing
native RegionAddCellAtLoc      takes region whichRegion, location whichLocation returns nothing
native RegionClearCell         takes region whichRegion, real x, real y returns nothing
native RegionClearCellAtLoc    takes region whichRegion, location whichLocation returns nothing

native IsUnitInRegion               takes region whichRegion, unit whichUnit returns boolean
native IsPointInRegion              takes region whichRegion, real x, real y returns boolean
native IsLocationInRegion           takes region whichRegion, location whichLocation returns boolean
 

Jedi

New Member
Reaction score
63
In short words, is GetTriggeringRegion usefull ?
And I know them, but I still don't get what are these "Cell" natives.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top