Salk Posted August 1, 2022 Posted August 1, 2022 Hello! Does anyone know if GetNearestCreature() can be used to detect a dead creature with the CREATURE_TYPE_IS_ALIVE parameter? I am using a UD script for doors to automatically close if there are no creatures within a certain distance but it seems bodies of dead creatures escape the loop. Worth mentioning maybe is the fact that I am using a "body stay" modification as well which may make things more complicated. Quote
DarthParametric Posted August 1, 2022 Posted August 1, 2022 GetIsDead is what you'd typically use. // 140: * Returns TRUE if oCreature is a dead NPC, dead PC or a dying PC. int GetIsDead(object oCreature); 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.