Difference between revisions of "GetDisease"
Jump to navigation
Jump to search
no edit summary
imported>Quetzilla |
imported>Quetzilla |
||
Line 8: | Line 8: | ||
To determine if an actor is diseased, it is necessary to check for each individual disease using [[IsSpellTarget]] as described [[Disease How to check in Object script|here]] | To determine if an actor is diseased, it is necessary to check for each individual disease using [[IsSpellTarget]] as described [[Disease How to check in Object script|here]] | ||
An alternate way using [[OBSE]] is to loop through the spells and do [[GetSpellType]]. If the spell type == 1 (disease), then the actor has a disease. This method will take into account ALL diseases, including those added by other mods. | An alternate way using [[OBSE]] is to loop through the actor's spells and do [[GetSpellType]]. If the spell type == 1 (disease), then the actor has a disease. This method will take into account ALL diseases, including those added by other mods. | ||
[[Category:Deprecated_Functions]] | [[Category:Deprecated_Functions]] |