koeienboei
Member
- Reaction score
- 4
I wrote this code:
In my code its actually all on one line
This is what should go in:
It starts a non-repeating timer t for 0.01 seconds and calls a function which moves a unit towards the mous location.
But this gives a syntax error... Im quite sure bout the ()
Code:
TimerStart(t,0.01,false,
function SetUnitPositionLocFacingLocBJ(
GetTriggerUnit(),
PolarProjectionBJ(
GetUnitLoc(GetTriggerUnit()),
50,
AngleBetweenPoints(
GetUnitLoc(GetTriggerUnit()),
Location(GetMouseTerrainX(), GetMouseTerrainY())
)
),
Location(GetMouseTerrainX(), GetMouseTerrainY())
)
In my code its actually all on one line
This is what should go in:
Code:
native TimerStart takes timer whichTimer, real timeout, boolean periodic, code handlerFunc returns nothing
It starts a non-repeating timer t for 0.01 seconds and calls a function which moves a unit towards the mous location.
But this gives a syntax error... Im quite sure bout the ()