Difference between revisions of "GetDisease"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
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]]


[[Category: Functions]]
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: Actor State Functions]]
[[Category: Condition Functions]]

Latest revision as of 08:38, 25 August 2008



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.