IsSpellHostile

Revision as of 17:00, 26 May 2008 by imported>DragoonWraith (New page: A command for Oblivion Script Extender '''Syntax:''' (isHostile:bool) GetSpellHostile spell:ref Returns 1 if spell is considered hostile. == Note...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A command for Oblivion Script Extender

Syntax:

(isHostile:bool) GetSpellHostile spell:ref

Returns 1 if spell is considered hostile.

Notes

  • In most cases, a spell is hostile so long as it has at least one hostile effect.
  • SetSpellHostile may override this, so a spell with no hostile effects may be considered hostile, or a spell with hostile effects may be considered non-hostile.
  • Removing all hostile effects from a hostile spell or adding hostile effects to a non-hostile spell will not update the hostility of the spell automatically.

See Also