EffectVisualEffect(int, int)
Creates a new visual effect object
effect EffectVisualEffect( int nVisualEffectId, int nMissEffect = FALSE );
Parameters
nVisualEffectId
nMissEffect
if this is TRUE, a random vector near or past the target will be generated, on which to play the effect (Default: FALSE)
Description
In NWN Script each effect that you are allowed to place on an object has it’s own constructor that creates a new instance of the specified effect (Constructors are special methods that return a new instance of an object). This effect object can then be used in an ApplyEffectToObject() Command.
This function creates a new Visual Effect
Version
1.22
Example
//Create the new visual effect effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE); //Apply the effect ApplyEffectToObject(DURATION_TYPE_INSTANT, eDur, oTarget);
See Also
functions: | ApplyEffectAtLocation |
categories: | Effects Functions | Visual Effects Functions |
author: Michael Nork
Send comments on this topic.