- Joined
- Apr 15, 2008
- Messages
- 82
I am making a tower defense, and I have a problem. When you block, the creep do not do anything. I then made a trigger
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(GetPlayableMapRect()) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(11), EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
This did nothing. Lastly, since I based the levels off of the Peasant unit (I removed the worker classification), I made the first level Footman, but still nothing. I am extremely confused with this...
[RAINBOW]By the way, hi Hive![/RAINBOW]
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(GetPlayableMapRect()) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(11), EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
This did nothing. Lastly, since I based the levels off of the Peasant unit (I removed the worker classification), I made the first level Footman, but still nothing. I am extremely confused with this...
[RAINBOW]By the way, hi Hive![/RAINBOW]