Zwiebelchen
Hosted Project GR
- Joined
- Sep 17, 2009
- Messages
- 7,234
JASS:
native AddSpellEffect takes string abilityString, effecttype t, real x, real y returns effect
native AddSpellEffectById takes integer abilityId, effecttype t,real x, real y returns effect
native AddSpellEffectByIdLoc takes integer abilityId, effecttype t,location where returns effect
native AddSpellEffectLoc takes string abilityString, effecttype t,location where returns effect
native AddSpellEffectTarget takes string modelName, effecttype t, widget targetWidget, string attachPoint returns effect
native AddSpellEffectTargetById takes integer abilityId, effecttype t, widget targetWidget, string attachPoint returns effect
All of these natives take an additional field called "effecttype".
When searching for constants in the function browser, these are the following:
JASS:
constant effecttype EFFECT_TYPE_AREA_EFFECT=ConvertEffectType(4)
constant effecttype EFFECT_TYPE_CASTER=ConvertEffectType(2)
constant effecttype EFFECT_TYPE_EFFECT=ConvertEffectType(0)
constant effecttype EFFECT_TYPE_LIGHTNING=ConvertEffectType(6)
constant effecttype EFFECT_TYPE_MISSILE=ConvertEffectType(5)
constant effecttype EFFECT_TYPE_SPECIAL=ConvertEffectType(3)
constant effecttype EFFECT_TYPE_TARGET=ConvertEffectType(1)