Jump to content

Chat to Channel 1


EnCore Mayne
 Share

You are about to reply to a thread that has been inactive for 1474 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

i run Francis Chung's Franimation AO. by manually chatting into channel 1, as such: "/1 ao off" or "/1 ao on" i can toggle its status. all good and fine BUT i'd like to script a HUD that automates the manual input. unfortunately, the llSay(1,"ao off"); from the HUD touch event does nothing. i've tried llRegionSay, and llOwnerSay, and llInstantMessage to no avail.

is there a code i can invoke that will simulate the manual chat?

Link to comment
Share on other sites

well, the whole point in making the HUD was so i could toggle the ao on and off with a mouse click. i suppose a single keystroke pair might suffice tho. i'll try that if i can't get anything to speak to the ao script.

i went into the ao script and it's way too complicated for me to discern what is going on, especially when its listen event to turn it on and off has this integer listenRelay = 0x80000000; for the listen channel.

Link to comment
Share on other sites

a quick hack of the Franimation script

replace the touch_start code with this, which is copypasta from code in listen event. I haven't tested it but hopefully should be ok fingers crossed

touch_start(integer num)
{
   if (animOverrideOn)
   { // turn it off
     llSetTimerEvent( 0 );
     animOverrideOn = FALSE;
     startNewAnimation( "", noAnimIndex, lastAnimState );
     llInstantMessage( llGetOwner(), "Franimation override off." );  
   }
   else
   {  // turn it on
     llSetTimerEvent( timerEventLength );
     animOverrideOn = TRUE;
     if( gotPermission )
        animOverride();
     llInstantMessage( llGetOwner(), "Franimation override on." );
   }
}

edit add:

am assuming we are talking about this script here:

https://www.outworldz.com/cgi/freescripts.plx?ID=46

 

Edited by Mollymews
  • Thanks 1
Link to comment
Share on other sites

Gestures will work, just define 2 for on and of and assign them to keys

The AO most probably filters by the owners uuid. In this case a scripted object doesn't have your uuid and can't send commands to the AO.

If the AO script is no mod it can be changed to listen to you and your objects.

Link to comment
Share on other sites

44 minutes ago, Mollymews said:

a quick hack of the Franimation script

replace the touch_start code with this, which is copypasta from code in listen event. I haven't tested it but hopefully should be ok fingers crossed


touch_start(integer num)
{
   if (animOverrideOn)
   { // turn it off
     llSetTimerEvent( 0 );
     animOverrideOn = FALSE;
     startNewAnimation( "", noAnimIndex, lastAnimState );
     llInstantMessage( llGetOwner(), "Franimation override off." );  
   }
   else
   {  // turn it on
     llSetTimerEvent( timerEventLength );
     animOverrideOn = TRUE;
     if( gotPermission )
        animOverride();
     llInstantMessage( llGetOwner(), "Franimation override on." );
   }
}

edit add:

am assuming we are talking about this script here:

https://www.outworldz.com/cgi/freescripts.plx?ID=46

 

perfect! works a charm.

  • Like 1
Link to comment
Share on other sites

3 hours ago, EnCore Mayne said:

unfortunately, the llSay(1,"ao off"); from the HUD touch event does nothing. i've tried llRegionSay, and llOwnerSay, and llInstantMessage to no avail

This would hint to the AO listening only to the avatar. Eg. llListen(llGetOwner);

Gestures are your only option unless you can change the AO script. 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1474 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...