Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Prim Cut

Turokhan Legion
Vortech Enterprises CEO
Join date: 22 Jul 2007
Posts: 32
01-06-2009 04:53
Hey guys,

Just curious if there is a script to cut paths on a prim?

cheers
_____________________
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
01-06-2009 05:05
Yes, with one function you can adjust any and all prim parameter, including cut path. (^_^)y

http://lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-06-2009 05:11
It's one of the many things you can set with http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams . This example shows it in use:
CODE
integer toggle;
default
{
state_entry()
{
toggle = TRUE;
}

touch_start(integer total_number)
{
vector cut;
if (toggle == TRUE)
cut = <0.125, 0.625, 0.0>;// equivalent to setting B:0.125, E:0.625 in the edit window
else cut = <0.0, 1.0, 0.0>;
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_BOX, 0, cut, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]);
toggle =!toggle;
}
}
Turokhan Legion
Vortech Enterprises CEO
Join date: 22 Jul 2007
Posts: 32
01-06-2009 14:37
thanks guys, exactly what i needed :D
_____________________