Andrewgosu
The Silent Pandaren Helper
- Reaction score
- 716
What exactly did you do?
Lets take an example, never mind the pseudo-code.
- local location casterloc= GetUnitLoc(caster)
- call AddSpecialEffectLoc(modelName, casterloc)
- call RemoveLocation(casterloc)
Now, to get rid of the location,
- call AddSpecialEffect(modelName, GetUnitX(caster), GetUnitY(caster))
To turn a function into a constant one, just add the "constant" prefix to the function and make sure you are not calling any non-constant functions from there.
"constant function SpellPrefix_Abilcode takes nothing returns integer"
Lets take an example, never mind the pseudo-code.
- local location casterloc= GetUnitLoc(caster)
- call AddSpecialEffectLoc(modelName, casterloc)
- call RemoveLocation(casterloc)
Now, to get rid of the location,
- call AddSpecialEffect(modelName, GetUnitX(caster), GetUnitY(caster))
To turn a function into a constant one, just add the "constant" prefix to the function and make sure you are not calling any non-constant functions from there.
"constant function SpellPrefix_Abilcode takes nothing returns integer"