- Joined
- Jul 10, 2008
- Messages
- 353
I really don't know what am doing trying to jass. But i just gotta do this if anyone can help...
All the above codes are completely useless. I would greatly appreciate any help on the matter, cause am just bad at this.
I want any unit, except units typed sapper, when they enter the rect028 area, to get a stop order issued. How do i do that? >.<
Code:
function main takes nothing returns nothing
set rect028=Rect(-5125,-1800,-4095,-2575)
set triggerSM=CreateTrigger()
call TriggerRegisterEnterRectSimple(triggerSM,rect028)
call TriggerAddCondition(triggerSM,Condition(function notsapper))
call TriggerAddAction(triggerSM,function stopm)
Code:
function notsapper takes nothing returns boolean
return ((IsUnitType(GetEnteringUnit(),UNIT_TYPE_SAPPER))==false)
endfunction
Code:
function stopm takes nothing returns nothing
call IssueImmediateOrderById(GetEnteringUnit(),$D0004)
Endfunction
All the above codes are completely useless. I would greatly appreciate any help on the matter, cause am just bad at this.
I want any unit, except units typed sapper, when they enter the rect028 area, to get a stop order issued. How do i do that? >.<
Last edited: