X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=huffware%2Fhuffotronic_tools_n_testers%2Fsculpty_morpher_v0.6.txt;fp=huffware%2Fhuffotronic_tools_n_testers%2Fsculpty_morpher_v0.6.txt;h=0000000000000000000000000000000000000000;hb=2ad923922ef5c1e212dd45aa5074f08d54ea9371;hp=60aa8940ed9a394500acc66d8536a505a6bed7f7;hpb=1809c04b7499a188d1c2a7df3ec588bc8591a2e3;p=feisty_meow.git diff --git a/huffware/huffotronic_tools_n_testers/sculpty_morpher_v0.6.txt b/huffware/huffotronic_tools_n_testers/sculpty_morpher_v0.6.txt deleted file mode 100755 index 60aa8940..00000000 --- a/huffware/huffotronic_tools_n_testers/sculpty_morpher_v0.6.txt +++ /dev/null @@ -1,46 +0,0 @@ -// -// sculpty morpher -//needs header. - -integer position; // which texture are we on? - -change_sculpture() -{ - integer textures_available = llGetInventoryNumber(INVENTORY_TEXTURE); - if (textures_available == 0) { - // nothing to morph into. - return; - } - position++; - if (position >= textures_available) { - // we rolled over, so go back. - position = 0; - } - string texture_name = llGetInventoryName(INVENTORY_TEXTURE, position); - llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, texture_name, PRIM_SCULPT_TYPE_SPHERE]); -} - -default { - state_entry() { if (llSubStringIndex(llGetObjectName(), "huffotronic") < 0) state real_default; } - on_rez(integer parm) { state rerun; } -} -state rerun { state_entry() { state default; } } - -state real_default -{ - state_entry() - { - llSetTimerEvent(4.0); - position = 0; - } - - timer() { - change_sculpture(); - } - - changed(integer type) { - if (type & CHANGED_INVENTORY) { - change_sculpture(); - } - } -}