- Joined
- May 1, 2008
- Messages
- 1,605
Seas =)
again I tried some vJass =S - I'm new to this but maybe someone can help me with it.
The Plan: If a unit (HERO) enter the rect "Enter", he should INSTANTport to rect "Leave"
The problem is what is the String Order - for instant move?. ( I Just typed "move" - but than he only walks to the rect not instantmove. ( SetUnitPositionLoc - i just write it to test some orders )
Thanks =)
again I tried some vJass =S - I'm new to this but maybe someone can help me with it.
JASS:
scope Enter initializer InitTrig_Enter
private function Conditions takes nothing returns boolean
return IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true
endfunction
private function Actions takes nothing returns nothing
call IssuePointOrderLoc(GetEnteringUnit(), "SetUnitPositionLoc", GetRectCenter(gg_rct_Leave))
endfunction
//===========================================================================
function InitTrig_Enter takes nothing returns nothing
set gg_trg_Enter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter, gg_rct_Enter )
call TriggerAddCondition( gg_trg_Enter, Condition( function Conditions ) )
call TriggerAddAction( gg_trg_Enter, function Actions )
endfunction
endscope
The problem is what is the String Order - for instant move?. ( I Just typed "move" - but than he only walks to the rect not instantmove. ( SetUnitPositionLoc - i just write it to test some orders )
Thanks =)