Difference between revisions of "GetDisease"
Jump to navigation
Jump to search
This script function is documented but either not implemented or else superceded by another function. Please do not use this function in your mod; alternatives are offered in the article.
imported>Maturin |
imported>Qazaaq m |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Deprecated Functions|CS1.0}} | |||
'''Syntax:''' | |||
[''ActorID''.]GetDisease | |||
Returns 1 if the actor is currently diseased. | Returns 1 if the actor is currently diseased. | ||
'''This function is ''not'' implemented and does not work.''' | |||
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 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. | ||
[[ | |||
Latest revision as of 08:38, 25 August 2008
Deprecated Function
This script function is documented but either not implemented or else superceded by another function. Please do not use this function in your mod; alternatives are offered in the article.
Syntax:
[ActorID.]GetDisease
Returns 1 if the actor is currently diseased.
This function is not implemented and does not work.
To determine if an actor is diseased, it is necessary to check for each individual disease using IsSpellTarget as described here
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.