A simple JASS question

Chjoodge

New Member
Reaction score
14
That is that your code is not just doing something you don't want it to, but that it is not even properly understandible to the WE. Writing:

Code:
local location Position = GetTriggeringUnitL0c()

...is just as understandible to the WE as

Code:
loxal l0c4710N p051710n = G3tTr1~GG~3R1nG_Pwnzingz|_|ni7Loc()

...as there is no GetTriggeringUnitLoc() function that the WE would recognize. However, there is GetUnitLoc(), which expects a unit inside its parentheses, and GetTriggerUnit(), which you can use just for that purpose.

Code:
local location Position = GetUnitLoc(GetTriggerUnit())
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
the syntax is what reads the code you wrote and compile it into the system and if you made errors the syntax won't be able to compile it eventually causing a syntax error
clear enough?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top