EffectUltravision()

Returns an effect of Ultravision

effect EffectUltravision();

Description

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



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
 Send comments on this topic.