Difference between revisions of "AddSpell"
Jump to navigation
Jump to search
no edit summary
imported>Fella |
imported>Quetzilla |
||
Line 34: | Line 34: | ||
Message " " | Message " " | ||
player.AddSpell "spell ID"</pre> | player.AddSpell "spell ID"</pre> | ||
This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds, so please use it only if you are sure no other messages will be disrupted, or you would create a lot of message spam otherwise. | *This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds, so please use it only if you are sure no other messages will be disrupted, or you would create a lot of message spam otherwise. | ||
*OBSE 0015 provides [[AddSpellNS]] which works exactly the same as AddSpell but without displaying any messages. | |||
*Like most functions, this one is a little different when used as a console command. When used as a console command the SpellID must be specified as a [[FormID]]. | *Like most functions, this one is a little different when used as a console command. When used as a console command the SpellID must be specified as a [[FormID]]. | ||
Line 40: | Line 41: | ||
==See Also== | ==See Also== | ||
*[[AddSpellNS]] | |||
*[[RemoveSpell]] | *[[RemoveSpell]] | ||
*[[Preventing messages]] | *[[Preventing messages]] |