Difference between revisions of "GetDisease"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Khadir
(Documenting actor functions ... + wikifying)
imported>Qazaaq
m
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ActorFunction}}
{{Deprecated Functions|CS1.0}}
'''Syntax:'''
'''Syntax:'''
  [''ActorID''.]GetDisease
  [''ActorID''.]GetDisease
Line 5: Line 5:
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.'''


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

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.