Jump to content

Spells active on player...


Xaeyr

Recommended Posts

Hi all. Working on a simple (or so I thought) mod and been trying to figure out what script command/function is used (if any) to find out if a certain spell ID is active on a player...for example, if I were to cast a strength spell on myself, is there a way for my script to see whether or not it's on my player?

 

Thanks!

 

Xaeyr

Link to comment
Share on other sites

If you want to know if certain actor is being affected by a specific spell then it is:

 

reference.IsSpellTarget spellID

 

 

If you want to know simply if it's being affected by certain magic effect (shield, fortify strenght, etc), then:

 

reference.HasMagicEffect MagicEffectID

 

 

You can get the spellID from the CS, and the magicEffectID from here.

 

Good luck!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...