Difference between revisions of "MagicItemHasEffectCode"
Jump to navigation
Jump to search
imported>Haama m (Fit to box) |
imported>Haama (Note on crashes) |
||
Line 2: | Line 2: | ||
(hasEffect:bool) MagicItemHasEffectCode effectCode:long magicItem:ref | (hasEffect:bool) MagicItemHasEffectCode effectCode:long magicItem:ref | ||
(hasEffect:bool) MagicHasEffectC effectCode:long magicItem:ref | (hasEffect:bool) MagicHasEffectC effectCode:long magicItem:ref | ||
==Notes== | |||
* Using '''MagicItemHasEffectCode''' on a magic item that doesn't have any effects (for instance, after using [[RemoveAllEffectItems]] on the item) will cause Oblivion to crash. | |||
** However, using '''MagicItemHasEffectCode''' on a non-magic item will not cause a crash. | |||
==See Also== | ==See Also== |
Revision as of 17:31, 5 September 2007
MagicItemHasEffectCode - returns whether the magic item has an effect item with the specified effect code. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode.
(hasEffect:bool) MagicItemHasEffectCode effectCode:long magicItem:ref (hasEffect:bool) MagicHasEffectC effectCode:long magicItem:ref
Notes
- Using MagicItemHasEffectCode on a magic item that doesn't have any effects (for instance, after using RemoveAllEffectItems on the item) will cause Oblivion to crash.
- However, using MagicItemHasEffectCode on a non-magic item will not cause a crash.