EffectDisappearAppear(location, int)
Returns a new effect object.
effect EffectDisappearAppear( location lLocation, int nAnimation = 1 );
Parameters
lLocation
Location where the affected object will reappear.
nAnimation
Which appear/disappear animation to use (Default: 1)
Description
Create a Disappear/Appear effect.The object will "fly away" for the duration of the effect and will reappear at lLocation.
Bioware uses this to have things fly (with wings) or flee, and beholders come up out of the ground in Hordes of the Underdark.
Using nAnimation set to 2 will make a few creatures use a second special disappear/appear animation they may have - most notably for beholders, "floating up out of the ground".
Remarks
Most useful for flying creatures to leap large gaps at once. Using anything but 1 in nAnimation will not work without the alternate appear/disappear animations present on the monster.
Anything can, however, use this effect and although strange, humans can fly off like Superman if you wish!
Do not use it on PC's, however, because it is likely to not look good at all.
Known Bugs
To make this work, you must set the duraction (on ApplyEffectToObject) to 3.0 seconds or greater (obviously the duration type must be temporary). In a busier area the duration might have to be a larger number.
Previous to 1.60, it would cause a crash if the direct line from the creatues start location and lLocation were over non-walkmesh area's, and if they were targeted during the effect. As of 1.60, this is resolved.
Version
1.30
See Also
functions: | EffectAppear |
categories: | Effects Functions |
author: John Shuell, editor: Jasperre, additional contributor(s): Ken Cotterill, Allan Floyd, Lilac Soul, Jasperre
Send comments on this topic.