EffectUltravision()

Returns an effect of Ultravision

effect EffectUltravision();

Description

Returns an effect of Ultravision which must then be applied to a creature using ApplyEffectToObject().

Ultravision lets the target object see when EffectDarkness() is applied to them (For instance: In a Darkness spell's AOE), and so they are not blinded and have no penalities.



Remarks

It has no effect on how an object sees other then the change to EffectDarkness().


Version

1.22

Example

// Example 1 - Create an Ultravision effect and apply it to the
// target who last used the calling object.  The effect will last for
// 40 seconds.

object oTarget = GetLastUsedBy();
effect eUltravision = EffectUltravision();
ApplyEffectToObject(DURATION_TYPE_INSTANT,eUltravision,oTarget,40.0f);

// Example 2 - Use EffectUltravision() directly without an effect 
// variable.

object oTarget = GetLastUsedBy();
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectUltravision(),oTarget,40.0f);


See Also

categories: Effects Functions


 author: Brett Lathrope, editor: Jasperre
 Send comments on this topic.