Syntax Error

Flare

Stops copies me!
Reaction score
662
When you want to use a function, it's done like
JASS:
call FunctionName (parameter1, parameter2)
//If there are any more parameters, add it in after parameter 2, and separate parameters with a comma

which, in this case, translates to
JASS:
call UnitAddAbility (caster, 'Agho') //Rawcodes must be enclosed by ' '


The variable-type after the returns just tells you what type of variable you can set it to e.g.
JASS:
local boolean b = UnitAddAbility (caster, 'Agho')
local integer i = GetUnitAbilityLevel (caster, 'Agho')
//And so on
 
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