03-01-2005 20:36
I have a script that sets the "hollow" of a prim when clicked. I would know like one to do the "cut" of a prim, but can't figure out the syntax... I have found this on in the wiki: cut/dimple/advancedcut x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored). below is my current "click to hollow" script. Help!

Thanks

CODE

//Click to set HOLLOW %

integer open = FALSE;

default {
state_entry() {
}

touch_start(integer total_number) {
if (!open) {
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_CIRCLE, <0.0, 1.0, 0.0>, 0.35, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]);
// the 0.9 is how hollow to make it.
open = TRUE;
} else {
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_CIRCLE, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]);
open = FALSE;
}
}
}