• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Tower Defense Blocking

Status
Not open for further replies.
Level 4
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]
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Why did you convert it to custom text ?
Welcome to Hiveworkshop btw

This wont work for sure
(Im looking for a block detection system too :/)
 
Level 4
Joined
Apr 15, 2008
Messages
82
I found out what was wrong! I made a trigger that every 0.1 seconds to order all units owned by player 12 to move to a region, so the creeps didn't have time to attack. I removed the trigger, and everything is fine.
 
Status
Not open for further replies.
Top