EnCore Mayne Posted June 8, 2020 Share Posted June 8, 2020 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 More sharing options...
Mollymews Posted June 8, 2020 Share Posted June 8, 2020 try llSay(0, "/1 ao on") Link to comment Share on other sites More sharing options...
EnCore Mayne Posted June 8, 2020 Author Share Posted June 8, 2020 tried...failed Link to comment Share on other sites More sharing options...
Mollymews Posted June 8, 2020 Share Posted June 8, 2020 1 minute ago, EnCore Mayne said: tried...failed sorry about that i forgot that a scripted object can't listen to itself a way might be to trigger it with a gesture 1 Link to comment Share on other sites More sharing options...
EnCore Mayne Posted June 8, 2020 Author Share Posted June 8, 2020 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 More sharing options...
Mollymews Posted June 8, 2020 Share Posted June 8, 2020 (edited) 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 June 8, 2020 by Mollymews 1 Link to comment Share on other sites More sharing options...
Nova Convair Posted June 8, 2020 Share Posted June 8, 2020 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 More sharing options...
EnCore Mayne Posted June 8, 2020 Author Share Posted June 8, 2020 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. 1 Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted June 8, 2020 Share Posted June 8, 2020 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 More sharing options...
Recommended Posts
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