Forcing speech
|
|
Maklin Deckard
Disillusioned
Join date: 9 Apr 2005
Posts: 459
|
02-04-2006 12:29
Is there any way in LSL for an object to force its owner to say something? Am working on a plane HUD...the plane uses spoken commands, but the best I can do is llSay, and that does not work since it comes out as HUD BUTTON: gearup instead of from me.
I've been told by some folks you can, but they have no idea how...others say its not possible for 'security reasons' (which seems stupid, you can force a compromising animation by clicking on a poseball, but not speech? And spoofing isn't an issue if its the owner being forced by his/her/its own object). Which one is it and if its doable, how do I implement this?
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
02-04-2006 13:01
llDialog does... but thats the only one i know of
if its a hud whynot make it listen to the hud, the owner would be wearing it
|
|
Maklin Deckard
Disillusioned
Join date: 9 Apr 2005
Posts: 459
|
02-04-2006 13:12
From: Osgeld Barmy llDialog does... but thats the only one i know of
if its a hud whynot make it listen to the hud, the owner would be wearing it llDialog, OK, will try that, Thanks! I LOOKED that command, but the SL documentation and WIKI are nearly useless (IMO, poorly worded, vague, written as refs for those already LSL proficient), most the time they leave out critical info that we're just 'supposed to know'...definitely not for beginners. Listen to the HUD, well because I'd have to retrofit the code in the aircraft, track down the owners and get them updated planes / the HUD. Am just trying for something as a mod for current folks that I can sell for a trivial amount. Those that one it can grab one, those that do not mind typing can pass on it.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
02-04-2006 13:39
fair enugh i missed where it was an update llDialog is really EZ but the wiki does make it read like forgin stereo instructions llDialog (userkey,"message you want in the blue box",["Insert","Button","Text"],chat_channel);
of course read up on it, theres some pain in the butt things, like button order
|
|
Maklin Deckard
Disillusioned
Join date: 9 Apr 2005
Posts: 459
|
02-04-2006 15:34
Got it working a while ago. Thanks! Even got it to see the gear state and add it to the message box. Now, if I can just figure out how to make a HUD button simulate pressing PG UP or PG DOWN.  I HATE being an novice at this when I am quite good on the text based games. Its annoying to have ideas I I don't have a clue how to implement. 
|
|
Reitsuki Kojima
Witchhunter
Join date: 27 Jan 2004
Posts: 5,328
|
02-04-2006 19:17
From: Maklin Deckard Got it working a while ago. Thanks! Even got it to see the gear state and add it to the message box. Now, if I can just figure out how to make a HUD button simulate pressing PG UP or PG DOWN.  I HATE being an novice at this when I am quite good on the text based games. Its annoying to have ideas I I don't have a clue how to implement.  Assuming you are currently using page up/down as parts of your vehicle controls, there isn't a perfect solution. As long as it's a stepped throttle, you can do it... If you want the HUD to control direction, I would suggest not wasting the time on it, sadly... the hud is imperfect at the moment.
_____________________
I am myself indifferent honest; but yet I could accuse me of such things that it were better my mother had not borne me: I am very proud, revengeful, ambitious, with more offenses at my beck than I have thoughts to put them in, imagination to give them shape, or time to act them in. What should such fellows as I do crawling between earth and heaven? We are arrant knaves, all; believe none of us.
|
|
CJ Carnot
Registered User
Join date: 23 Oct 2005
Posts: 433
|
02-06-2006 04:35
A rather obvious and simple way to do this is to name the object doing the speaking as yourself ... it says it in green, but works perfectly.
If you need to do this dynamically, use llSetObjectName, alternatively just type it in to the edit box.
|