- Joined
- Apr 6, 2008
- Messages
- 760
this been bugging me for quite a while now can figure out which is the best way
e.g 1
e.g 2
what i really wanna know is it faster to save stuff in to a var(not all stuff ofc) or "set it" on the the "call"(like in e.g 2)? thx for your time
e.g 1
JASS:
local real x
local real y
local real ux
local real uy
local real angle = //blahblahblah
set x = GetUnitX(c)
set y = GetUnitY(c)
set ux = (x + 100 * Cos(angle * bj_DEGTORAD))
set uy = (y + 100 * Sin(angle * bj_DEGTORAD))
set dum = CreateUnit(GetOwningPlayer(c),'h000',ux, uy, angle)
e.g 2
JASS:
set dum = CreateUnit(GetOwningPlayer(c),'h000',(GetUnitX(c) + 100 * Cos(angle * bj_DEGTORAD)),(GetUnitY(c) + 100 * Sin(angle * bj_DEGTORAD)), angle)
what i really wanna know is it faster to save stuff in to a var(not all stuff ofc) or "set it" on the the "call"(like in e.g 2)? thx for your time
Last edited: