- Joined
- Oct 8, 2005
- Messages
- 298
Ok i dont get it, this is a very basic jass function but whenever i try to enable it i get an error message saying that it "expected 'set'". Heres the trigger:
the line that "required 'set'" was
any ideas as to what could be causing this error?
JASS:
function Trig_Spawns_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_hkee_0059) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawns_Actions takes nothing returns nothing
local location a = GetRectCenter(gg_rct_HumanTop)
local location b = GetRectCenter(gg_rct_Top_1)
bj_lastCreatedUnit = CreateUnit(Player(10),'hfoo',GetLocationX(a),GetLocationY(a),270)
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetLocation(b) )
bj_lastCreatedUnit = CreateUnit(Player(10),'hfoo',GetLocationX(a),GetLocationY(a),270)
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetLocation(b) )
bj_lastCreatedUnit = CreateUnit(Player(10),'hmpr',GetLocationX(a),GetLocationY(a),270)
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetLocation(b) )
bj_lastCreatedUnit = CreateUnit(Player(10),'hrif',GetLocationX(a),GetLocationY(a),270)
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetLocation(b) )
call RemoveLocation(a)
call RemoveLocation(b)
endfunction
//===========================================================================
function InitTrig_Spawns takes nothing returns nothing
set gg_trg_Spawns = CreateTrigger( )
call DisableTrigger( gg_trg_Spawns )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Spawns, udg_SpawnBasicForces )
call TriggerAddCondition( gg_trg_Spawns, Condition( function Trig_Spawns_Conditions ) )
call TriggerAddAction( gg_trg_Spawns, function Trig_Spawns_Actions )
endfunction
the line that "required 'set'" was
JASS:
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetLocation(b) )