Jump to content

Susan Independent

Resident
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Susan Independent

  1. Hey guys i found this old thread while browsing through. First: I´m not native english speaking, it´s a foreign language, so when i spell something wrong or use wrong translated words, please ask again if you don´t understand. My question belongs to the script below: Kaluura Boa wrote: key ItemKey;default{ on_rez(integer param) { llResetScript(); } state_entry() { llSetTimerEvent(0.0); // Not needed until we have an item to watch } touch_end(integer num) { if (llDetectedKey(0) == llGetOwner()) // Owner touch to rez the first one { llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), llGetPos() + <0.0, 0.0, 0.5>, ZERO_VECTOR, ZERO_ROTATION, 42); // Never ask why 42. } } object_rez(key id) { ItemKey = id; // We just rezzed something... llSetTimerEvent(5.0); // Start watching. } timer() { if (llList2Vector(llGetObjectDetails(ItemKey, [OBJECT_POS]), 0) == ZERO_VECTOR) { // Gone? Rez a new one! llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), llGetPos() + <0.0, 0.0, 0.5>, ZERO_VECTOR, ZERO_ROTATION, 42); // Never ask why 42. } }} Is there a chance to ask a second prim in a specificated range (about 50-100m) if there is an object rezzed, and if not, rez a new from inventory. So you only need ONE storage and can use several remote rezz-pads (Also talking about one-of-a-kind-objects in storage-inventory) I hope, my question is understandable With best regards, Susan
×
×
  • Create New...