Second Life/Selfreplication: Unterschied zwischen den Versionen
K Die Seite wurde neu angelegt: // The ttl variable is a counter, decreased for each subsequent replication, // the child that get rezzed with a ttl value of zero will not procreate. integer ttl = 3;... |
KKeine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
// The ttl variable is a counter, decreased for each subsequent replication, | // The ttl variable is a counter, decreased for each subsequent replication, | ||
// the child that get rezzed with a ttl value of zero will not procreate. | // the child that get rezzed with a ttl value of zero will not procreate. | ||
integer ttl = 3; | integer ttl = 3; | ||
rez_child() | rez_child() | ||
{ | { | ||
// Check if we're allowed to create any more offspring | // Check if we're allowed to create any more offspring | ||
if(ttl > 0) | if(ttl > 0) | ||
Zeile 16: | Zeile 16: | ||
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 | ||
{ | { | ||
// If you touch me, we'll have babies! | // If you touch me, we'll have babies! | ||
touch_start(integer total_number) | touch_start(integer total_number) | ||
Zeile 50: | Zeile 50: | ||
} | } | ||
} | } | ||
} | } |