But what i'm trying to do is..
I have a 2 gestures from pose balls... one where AV (A) has his arms behind him.. and AV (B) Rides on AV(A) piggyback.
Ok yeah it's a pose.. but maybe theres a way so I can walk while holding the other AV.
I have this script I was given called Ride on Someone 1.2.. It seems it allows them to take over My controls so they can move me... Which I guess is ok.. but I would like to retain control
CODE
// Sit on Someone 1.2
// Catherine Omega Heavy Industries
integer DEBUG = FALSE;
integer gChannel = 0; // what channel to listen on by default?
string gSitAnim = "sit_ground"; // what animation to use to sit?
string gCommand;
string gSubCommand;
default
{
state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);
llListen(gChannel,"",llGetOwner(),"");
}
run_time_permissions(integer perm)
{
llTakeControls(CONTROL_DOWN | CONTROL_FWD | CONTROL_UP | CONTROL_LEFT | CONTROL_RIGHT | CONTROL_BACK, TRUE, TRUE);
}
listen(integer channel, string name, key id, string m)
{
integer command_divide = llSubStringIndex(m," ");
gCommand = llToLower(llGetSubString(m, 0, command_divide - 1)); // grab the command
gSubCommand = llToLower(llGetSubString(m, command_divide + 1, llStringLength(m))); // grab the rest of the input
if (gCommand == "/sit" || gCommand == "/stand")
{
if(DEBUG)llSay(0,gSubCommand);
llSensor("","",AGENT,20,2*PI);
}
}
sensor(integer num)
{
integer i;
for (i = 0; i < num; i++)
{
if (llSubStringIndex(llToLower(llDetectedName(i)),gSubCommand) > -1)
{
if(DEBUG)llSay(0,"sitting on " + llDetectedName(i));
llMoveToTarget(llDetectedPos(i) + <0,0,3>, 0.2);
llSleep(1.0);
llStopMoveToTarget();
if (gCommand == "/sit")
{
llStartAnimation(gSitAnim);
}
//return;
}
}
}
control(key name, integer levels, integer edges)
{
if ((edges & CONTROL_RIGHT) || (edges & CONTROL_LEFT))
{
if(DEBUG)llSay(0,"got here");
llStopAnimation(gSitAnim);
}
}
}
Not quite sure how to use it.. but as I started to think about doing this a little further.. I thought of a better way I could do this..
I have this Red Wagon Where a there is Pose Cube, and 3 Pose balls... The cube is the AV who pulls the wagon.. basically in control.. and the 3 pose balls are for sitting. So obviously the Pose Cube guy pulls the wagon and moves the other guys.
So I thought what if I made 2 Pose cubes that would hide as soon as i Wear them.. where I would be the person in control.. and the 2nd cube my girl would wear so she could piggy back on me.. basically the same concept as the wagon ie, I'm the Pose Cube in control on the wagon, and she's the pose ball on the wagon.
Does anyone have an idea how to do this?
Thanks.