#include "NW_O2_CONINCLUDE"
void main()
{
float fDelay = 30.0; //30 second delay
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
object oLastOpener = GetLastOpener();
GenerateLowTreasure(oLastOpener, OBJECT_SELF);
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
DelayCommand(fDelay,SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",0));
ShoutDisturbed();
}
Sorry but I cant seem to get the code above to show below my message. :-( The script above works great for respawning the loot. The problem however is if the loot is not removed from the chest when opened again it just stacks on top of whats there. I know I have to use DestroyObject somehow but Im not sure how.
Thanks in advance!





Retour en haut






