How to tell a mesh from a sculpt from a prim
Posted: Thu Jul 29, 2021 12:15 pm
I thought this little script could be useful for others too.
Obvioulsy, if you want to integrate it into a bigger script, replace the llOwnerSay() lines with whatever code you want to run for each type of object.
Obvioulsy, if you want to integrate it into a bigger script, replace the llOwnerSay() lines with whatever code you want to run for each type of object.
Code: Select all
default
{
state_entry()
{
list CheckType=(llGetPrimitiveParams([PRIM_TYPE]));
if((string) llList2List(CheckType,0,0)=="7"){
if((string) llList2List(CheckType,2,2)=="5"){
llOwnerSay("This is a mesh");
}
else{
llOwnerSay("This is a sculpt");
}
}
else {
llOwnerSay("This is a prim");
}
}
}