GetNthPlayerSpell

Revision as of 03:55, 15 September 2007 by imported>WereWolf

A command for Oblivion Script Extender

Syntax:

(spell:ref) GetNthPlayerSpell whichSpell:long
(spell:ref) GetNthSpell whichSpell:long

Returns the nth player spell.

Notes

  • WhichSpell is an index that starts at 0 for the first spell in the list.
  • Note that the CS compiler doesn't expect spells to be returned as a ref. If you are calling this function multiple times to set the same ref variable you need to assign that variable to some other type (say a weapon) in between your calls to this function. Otherwise the ref will continue to keep the value from the first call.
  • Might have the same problem with reference-less calls that GetPlayerSpellCount does.

See Also