Need Script for moving prims
Posted: Thu Sep 07, 2017 10:41 pm
I have a butterfly as part of a build and it has prim wings that flap in sync, they are linked, along with the stationary body and head to a base prim that contains two scripts, (one for each wing) that has the recorded positions for the movement of the wings. The positions are relative to the base prim, not the region, which is the way I want it. Below is one of the scripts.
The problem is that they are running at 20.000 and I'll like to reduce that considerably. Does anyone have a script that works in this way but works better for OS grids?
Thanks!
Koshari
The problem is that they are running at 20.000 and I'll like to reduce that considerably. Does anyone have a script that works in this way but works better for OS grids?
Thanks!
Koshari
Code: Select all
//Place the script named "get pos and rot" in the prim that you are going to be moving around
//get as many positions as you want and paste them in the timer, below, in the order that you want them to show
//The timer is now set so that the part will move every 1.0 sec. Change tincr to whatever value you want: bigger tincr is slower motion, smaller is faster motion.
float tincr = 1.0; //only change the 1.0, leave everything else the same
//When you are ready, save the script.
default
{
state_entry()
{
llSetTimerEvent(tincr);
}
timer()
{//paste your lines in here, instead of the ones that are there, one after the other, in the order you want.
//===============================================================================
llSetLinkPrimitiveParams(7, [PRIM_POSITION,<-0.072067,0.055054,0.956909>, PRIM_ROTATION, <0.992595,-0.000809,0.121284,0.006622>/llGetRot()]);
llSetLinkPrimitiveParams(7, [PRIM_POSITION,<-0.072067,0.348053,0.925049>, PRIM_ROTATION, <0.973584,0.022049,0.119266,0.193453>/llGetRot()]);
llSetLinkPrimitiveParams(7, [PRIM_POSITION,<-0.072067,0.630615,0.768188>, PRIM_ROTATION, <0.917136,0.044892,0.112673,0.379673>/llGetRot()]);
llSetLinkPrimitiveParams(7, [PRIM_POSITION,<-0.072067,0.348053,0.925049>, PRIM_ROTATION, <0.973584,0.022049,0.119266,0.193453>/llGetRot()]);
llSetLinkPrimitiveParams(7, [PRIM_POSITION,<-0.072067,0.055054,0.956909>, PRIM_ROTATION, <0.992595,-0.000809,0.121284,0.006622>/llGetRot()]);
//======================================================================================
}
}