RemoveSpell - Actor: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Egocarib
(updated note based on more testing)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function RemoveSpell(Spell akSpell) native
bool Function RemoveSpell(Spell akSpell) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Removes the sheep spell from the player
; Removes the sheep spell from the player
if (Game.GetPlayer().RemoveSpell(SheepSpellProperty))
if (Game.GetPlayer().RemoveSpell(SheepSpellProperty))
   Debug.Trace("Sheep spell removed from the player")
   Debug.Trace("Sheep spell removed from the player")
endIf
endIf
</source>
</syntaxhighlight>


== Note ==
== Note ==

Navigation menu