LoD_PRC8/_module/nss/ba2_dthrs.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

32 lines
834 B
Plaintext

void main()
{
if(!GetIsObjectValid(GetSittingCreature(OBJECT_SELF)))
{
AssignCommand(GetLastUsedBy(), ActionSit(OBJECT_SELF));
object oKilled = GetLastUsedBy();
effect eDeath = EffectDeath(TRUE,TRUE);
effect eThunder = EffectVisualEffect(VFX_IMP_LIGHTNING_M);
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oKilled));
DelayCommand(1.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eThunder, oKilled));
if(GetLocalInt(OBJECT_SELF, "Spawnattu") != 1)
{
CreateObject(OBJECT_TYPE_CREATURE, "ba2_azermfi", GetLocation(OBJECT_SELF), TRUE);
CreateObject(OBJECT_TYPE_CREATURE, "ba2_azermfi", GetLocation(OBJECT_SELF), TRUE);
SetLocalInt(OBJECT_SELF, "Spawnattu", 1);
}
}
}