HoS_PRC8/_mod/_module/nss/und_preserve.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

17 lines
467 B
Plaintext

// und_preserve - corpses perserved in this area
void main()
{
object oFirst=GetFirstObjectInArea(OBJECT_SELF);
object oOb;
int nN;
if (GetTag(oFirst)=="corpseres") SetLocalInt(oFirst,"bPreserved",TRUE);
nN=1;
oOb=GetNearestObjectByTag("corpseres",oFirst,nN);
while(oOb!=OBJECT_INVALID)
{ // set to preserved
SetLocalInt(oOb,"bPreserved",TRUE);
nN++;
oOb=GetNearestObjectByTag("corpseres",oFirst,nN);
} // set to preserved
}