9 lines
306 B
Plaintext
9 lines
306 B
Plaintext
void main()
|
|
{
|
|
object oMe=OBJECT_SELF;
|
|
int nEffect=GetLocalInt(oMe,"nEffect");
|
|
effect eVFX=EffectVisualEffect(nEffect);
|
|
if (GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC,oMe,1)!=OBJECT_INVALID)
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,GetLocation(oMe),6.1);
|
|
}
|