The Unfindable Leak vs Safeness

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.
 

newtonrox

Member
Reaction score
2
JASS:
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) &lt; 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, &quot;move&quot;, X,Y)        

       endif


       call RemoveLocation (A)
       call RemoveLocation(L)
       set L = null
       set U = null
       set A = null

endfunction


should it be like this?
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Something like that.
Except your udg_Spawned_Unit can be a local unit.

Or, do as TTE said:
call IssuePointOrder(CreateUnit(/*Stuff*/), "move", GetLocX(), GetLocY())
 

newtonrox

Member
Reaction score
2
it just crashed again...
all I have running are those triggers.

I don't have anymore ideas. T_T
need help
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top