i have rezzed a nice katana, and done custom animations to put on it, so i try to start a script..and when i hold the left mouse button or left mouselook button the animation "ready" run, and when i hold the forward arrow (or W key) too, the animation "slash" run, but also the av moving forward!!..and i dont want this..
i would that when i hold the LBUTTON+FWD the avatar stay firm, and commands must control only the animations not the movements of the avi.
this is the trunk of my script:
//------------------------------------------------------------------------
run_time_permissions(integer perm)
{
if (perm)
{
llTakeControls(CONTROL_ML_LBUTTON | CONTROL_LBUTTON | CONTROL_UP | CONTROL_DOWN | CONTROL_FWD | CONTROL_BACK | CONTROL_ROT_LEFT | CONTROL_LEFT | CONTROL_RIGHT | CONTROL_ROT_RIGHT, TRUE, TRUE);
}
}
control(key owner, integer level, integer edge)
{
if (level & (CONTROL_ML_LBUTTON | CONTROL_LBUTTON))
{
llStartAnimation("ready"
;if(edge & level & CONTROL_FWD)
{
llStopAnimation("ready"
;llStartAnimation("slash"
;llSetTimerEvent(0.25);
}
}
else
{
llStopAnimation("ready"
;}
}//--control()
//-------------------------------------------------------------
thx^^ Shai