DoCombatSpellApply - Actor

Revision as of 16:26, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Adds the specified spell to the target actor from this one as the caster. Use this instead of AddSpell to apply a spell in combat so that die rolls and other appropriate events can occur (such as applying a disease through a spell).

SyntaxEdit

Function DoCombatSpellApply(Spell akSpell, ObjectReference akTarget) native

ParametersEdit

  • akSpell: The spell that this actor applies to the target reference during combat.
  • akTarget: The target of the spell.

Return ValueEdit

None.

ExamplesEdit

; Have the wizard apply the super spell to the target
Wizard.DoCombatSpellApply(SuperSpell, UnluckyTarget)

See AlsoEdit