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

11 lines
357 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_TENTACLE );
ApplyEffectToObject( DURATION_TYPE_TEMPORARY, light, OBJECT_SELF, 10800.0 );
}
}