removeitem not working for lantern.
I just want the lantern to be removed from the inventory after changing the map.Tried having just removeitem under void OnStart as well. Thought useing a timer might work , but it doesn't do anything. The only thing that happens is it puts the lantern away, but if i use the debug menu to reload the map it works.
////////////////////////////
// Run when the map starts
void OnStart()
{
SetLanternActive(false,true);
AddTimer("",1,"RemoveLantern");
AutoSave();
}
void RemoveLantern(string &in asTimer)
{
RemoveItem("lantern");
}
|