when i try to use the GetHeroSkillPoints function it keeps telling me invalid number of arguements.
in common.j it says
so i have the function name right, and it only takes 1 arguement and its type unit. every time i try to call this function with 1 unit arguement it tells me invalid number of arguements.
-----------------------------------------------------------------------
nevermind i found the problem. it was highlighting the wrong line. the SetHeroLevel function was supposed to have a boolean for 3rd arguement.
Code:
local integer tempInt
local unit caster = GetSpellAbilityUnit()
local unit target = GetSpellTargetUnit()
local location targloc = GetUnitLoc(target)
local unit swarmunit = CreateUnitAtLoc(GetOwningPlayer(caster), 'O000', targloc, bj_UNIT_FACING )
call SetHeroLevel( swarmunit, GetHeroLevel(caster) )
set tempInt = GetHeroSkillPoints(swarmunit)
in common.j it says
Code:
native GetHeroSkillPoints takes unit whichHero returns integer
so i have the function name right, and it only takes 1 arguement and its type unit. every time i try to call this function with 1 unit arguement it tells me invalid number of arguements.
-----------------------------------------------------------------------
nevermind i found the problem. it was highlighting the wrong line. the SetHeroLevel function was supposed to have a boolean for 3rd arguement.