PWE_PRC8/_module/nss/ek_evil_effect5.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

11 lines
363 B
Plaintext

void main()
{
object nearestPC = GetNearestCreature( CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC );
float distance = GetDistanceBetween( nearestPC, OBJECT_SELF );
if ( distance <= 0.0 )
{
effect light = EffectVisualEffect( VFX_DUR_ETHEREAL_VISAGE );
ApplyEffectToObject( DURATION_TYPE_TEMPORARY, light, OBJECT_SELF, 3600.0 );
}
}