SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
[lJASS]call IssuePointOrder(CreateUnit(/*Stuff*/), "move", GetLocX(), GetLocY())[/lJASS] <-- That's so much better.
function Trig_SpawnUnits_Actions takes nothing returns nothing
local integer OwnerN = udg_TierOwner
local unit U = udg_Farm[OwnerN]
local location A = GetUnitLoc(U)
local location L = GetUnitRallyPoint(U)
local real X = GetLocationX(L)
local real Y = GetLocationY(L)
set udg_TierOwner = 0
if ( GetPlayerState(udg_Players[OwnerN], PLAYER_STATE_RESOURCE_FOOD_USED) < 70 ) then
set udg_Spawned_Unit = CreateUnitAtLoc(udg_Players[OwnerN],udg_TierUnit[OwnerN],Location(GetLocX(A),GetLocY(A)),0.00)
call IssuePointOrder(udg_Spawned_Unit, "move", X,Y)
endif
call RemoveLocation (A)
call RemoveLocation(L)
set L = null
set U = null
set A = null
endfunction