Second Life/Selfreplication: Unterschied zwischen den Versionen
KKeine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 5: | Zeile 5: | ||
rez_child() | rez_child() | ||
{ | { | ||
Zeile 12: | Zeile 13: | ||
// Offspring ttl should be one closer to zero | // Offspring ttl should be one closer to zero | ||
integer ttl_child = ttl - 1; | integer ttl_child = ttl - 1; | ||
// Rez child one meter above me | // Rez child one meter above me | ||
llRezObject("1000er", llGetPos()+<0,0,1>, <0,0,0>, <0,0,0,0>, ttl_child); | llRezObject("1000er", llGetPos()+<0,0,1>, <0,0,0>, <0,0,0,0>, ttl_child); | ||
} | } | ||
} | } | ||
default | default | ||
Zeile 26: | Zeile 27: | ||
} | } | ||
// llRezObject throws event object_rez on the parent with the offspring as parameter | // llRezObject throws event object_rez on the parent with the offspring as parameter | ||
object_rez(key child) | object_rez(key child) | ||
Zeile 33: | Zeile 35: | ||
} | } | ||
// When rezzed, the event on_rez is called on me as the child | // When rezzed, the event on_rez is called on me as the child | ||
on_rez(integer ttl_in) | on_rez(integer ttl_in) | ||
Zeile 39: | Zeile 42: | ||
ttl = ttl_in; | ttl = ttl_in; | ||
} | } | ||
// Because of the script-delay we have to connect the grand-child rezzing | // Because of the script-delay we have to connect the grand-child rezzing |