WoR_PRC8/_module/nss/taer_mummy_spwn2.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

21 lines
704 B
Plaintext

void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE);
void main()
{
if(GetIsDay()) {
//Do Nothing
}
else {
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), GetLocation(GetWaypointByTag("WP_RHUN_SEOC_01")));
DelayCommand(1.0, CreateObject2(OBJECT_TYPE_CREATURE, "mummyserdo", GetLocation(GetWaypointByTag("WP_RHUN_SEOC_01"))));
SetIsDestroyable(TRUE);
DelayCommand(2.0, DestroyObject(OBJECT_SELF));
}
}
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE)
{
CreateObject(nObjectType, sTemplate, lLocation, bUseAppearAnimation);
return;
}