Files
Anphillia_PRC8/_module/nss/obj_auto_respawn.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

13 lines
369 B
Plaintext

/*
Hook this to the OnDeath event for objects that require respawn on death.
*/
void main()
{
float facing = GetFacing(OBJECT_SELF);
location loc = GetLocation(OBJECT_SELF);
int objType = GetObjectType(OBJECT_SELF);
AssignCommand(GetLastAttacker(OBJECT_SELF), ClearAllActions(TRUE));
CreateObject(objType, GetResRef(OBJECT_SELF), loc, FALSE);
}