I'm trying to add this code to the control event of my AO in order to stop the default banking effect and substituting for my own banking animations (the default one makes my mesh avi to turn around strangely)... no success on stop banking effect or substituting it with another banking animation.....
This is my control event...
control( key _id, integer _level, integer _edge )
{
if ( _edge )
{
if ( llGetAnimation(Owner) == "Walking" )
{
if ( _level & _edge & ( CONTROL_BACK | CONTROL_FWD ) )
{
if ( haveWalkingAnim )
{
llStopAnimation( "walk" );
llStopAnimation( "female_walk" );
}
}
}
checkAndOverride();
}
}
I even changed the "id, edge and level" for "_id, _edge, _level" as it is on the AO's code. Could someone help me....?