SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
I still say you should use X-Y >.>
Look at that wonderful 3 lines compared to 5!
And You can make it even shorter!
One line.
You can eliminate [lJASS]TriggerAddAction[/lJASS], too.
Seeing as you return true for your condition..
Look at that wonderful 3 lines compared to 5!
And You can make it even shorter!
One line.
JASS:
call SetUnitPosition(GetEnteringUnit(), GetRandomReal(GetRectMinX(gg_rct_Waygate_Teleport), GetRectMaxY(gg_rct_Waygate_Teleport)), GetRandomReal(GetRectMinX(gg_rct_Waygate_Teleport), GetRectMaxY(gg_rct_Waygate_Teleport)))
You can eliminate [lJASS]TriggerAddAction[/lJASS], too.
Seeing as you return true for your condition..
JASS:
function Waygate_Teleport_Conditions takes nothing returns boolean
call SetUnitPosition(GetEnteringUnit(), GetRandomReal(GetRectMinX(gg_rct_Waygate_Teleport), GetRectMaxY(gg_rct_Waygate_Teleport)), GetRandomReal(GetRectMinX(gg_rct_Waygate_Teleport), GetRectMaxY(gg_rct_Waygate_Teleport)))
return false
//Tadah!!
endfunction