1 make the prim its in a seat
2 convert the prim its in into a red airplane chair
if you rez a standard plywood cube and then drop the script in "poof" you have a chair
Now the real question how does this work (ive figured out some of the texture stuff)?
or how would i go from a by hand rezed prim to a script built one??
full text of the script follows next line-----------
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, PRIM_HOLE_CIRCLE, <0.65, 0.85, 0.0>, 0.90, <0.0, 0.0, 0.0>, <0.35, 0.90, 0.0>,
PRIM_TEXTURE, 0, "9ee69ec2-5466-41a1-f7ae-e46f2570de54", <-1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0439,
PRIM_TEXTURE, 1, "97e08b78-1065-ee18-1fa5-0cce17da2c66", <2.0, 2.0, 0.0>, <0.50, 0.70, 0>, -1.570840,
PRIM_TEXTURE, 2, "bac319a6-33ea-4ebe-e529-8da8dfd7f1a9", <2.0, 4.0, 0.0>, <0.0, 0.0, 0.0>, -3.1415972,
PRIM_TEXTURE, 3, "9ee69ec2-5466-41a1-f7ae-e46f2570de54", <1.0, 1.0, 0.0>, <0,0,0>, -0.0439,
PRIM_TEXTURE, 4, "fdc9f370-b1c5-4739-bfe4-e51a87baddc5", <1.0, 42.0, 0.0>, <0,0,0>, 0.0,
PRIM_TEXTURE, 5, "fdc9f370-b1c5-4739-bfe4-e51a87baddc5", <1.0, 18.0, 0.0>, <0,0,0>, 0.0] );
llSetScale(< 1.400, 1.310, 2.250>
;llSetColor(<.34510, .34510, .34510>, ALL_SIDES);
llSetColor(<1,1,1>,0);
llSetColor(<1,1,1>,2);
llSetColor(<1,1,1>,3);
llSetColor(<1,1,1>,4);
llSetColor(<1,1,1>,5);
llSetSitText("Pilot"
;llSitTarget(<0.0,0.0,-0.6>, <0,-0.2,0,1>
;llSetCameraEyeOffset(<-5.0, 0.0, 1.0>
;llSetCameraAtOffset(<0.0, 0.0, 1.0>
;//llSetObjectName("Airplane Seat"
;//llSetObjectDesc("By; Mark Coffee"
;}
changed(integer change)
{
if (CHANGED_LINK)
{
key agent = llAvatarOnSitTarget();
if (agent)
{
}
else
{
llUnSit(agent);
}
}
}
}
-------end script