Sk8-tEr
New Member
- Reaction score
- 5
Event-A unit enters Jass region <gen>
Condtion-
Action-Create 1 footman for player 1 (red) at (center of(playable map area))
I converted it to custom text
Then i tried to make a variable
I tested but it didnt work... how do you make a variable?
Condtion-
Action-Create 1 footman for player 1 (red) at (center of(playable map area))
I converted it to custom text
JASS:
function Trig_Enters_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 039;hfoo039;, Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Enters takes nothing returns nothing
set gg_trg_Enters = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enters, gg_rct_Jass_Region )
call TriggerAddAction( gg_trg_Enters, function Trig_Enters_Actions )
endfunction
Then i tried to make a variable
JASS:
function Trig_Enters_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 039;hfoo039;, Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Enters takes nothing returns nothing
set gg_trg_Enters = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enters, gg_rct_Jass_Region )
call TriggerAddAction( gg_trg_Enters, function Trig_Enters_Actions )
unit (entering unit) = A
endfunction
I tested but it didnt work... how do you make a variable?