Hi im trying to make a module. I want the character to be able to do some agriculture but it seems that i cant make an apple respawn (with a delay) when being picked up.
- Script generated by LS Script Generator, v.TK.0
- For download info, please visit:
// Put this script OnUsed.
object oSelf = OBJECT_SELF;
// Get the creature who triggered this event. object oPC = GetLastUsedBy(); // Destroy an object (not fully effective until this script ends). DestroyObject(oSelf); // Give "apple" to the PC. CreateItemOnObject("apple", oPC); // Spawn "appleonground". DelayCommand(4.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "appleonground", GetLocation(oSelf)));