angeoco Posted October 3, 2017 Share Posted October 3, 2017 (edited) Hi. I would like to make a HUD to control my boat. The boat only listens to public chat commands from its owner who is sitting on it, and presumably also a crew member who is also sitting on it and has been given the controls. So, it seems I need a function which will make the HUD's owner/wearer say commands to local chat. But all I can find is functions that make the HUD say things, which the boat ignores. Does anybody know of such a function? Thanks a lot. Edited October 3, 2017 by angeoco Link to comment Share on other sites More sharing options...
Innula Zenovka Posted October 3, 2017 Share Posted October 3, 2017 As I understand it, you want to make the boat respond to commands from a HUD worn whoever is sailing it, as well to commands the owner/navigator issues on channel 0. If that is the case, you will need to be able to edit the boat script to make this work. The reason for this is that the boat script almost certainly listens only to the boat's owner or, possibly, whoever is sitting in the navigator's position. You would need to tweak the listener so it listens also to a channel other than 0, preferably a negative one several digits long, that the HUD uses, and then check in the listen event that the HUD belongs to the owner/skipper. If that's not possible, the only work-around would be to have the HUD put up a llDialogMessage using channel 0, and have the user choose messages using the buttons. Since llDialog makes the viewer say the message on the specified channel, saying "Start" in chat and pressing a button labelled "Start" on a llDialog menu that uses 0 as its channel amount to the same thing. But I would edit the boat script if at all possible. 2 Link to comment Share on other sites More sharing options...
Love Zhaoying Posted October 3, 2017 Share Posted October 3, 2017 1) If the boat's script was written to only listen for the owner's UUID: this will only work if the actual owner says the commands. 2) If the boat's script was written to also listen for chat from objects OWNED by the owner: Have any object say the command. 3) I very much doubt that having an object "impersonating" the owner by "renaming it" to the owner's name will work in this case, the way you described it. 1 Link to comment Share on other sites More sharing options...
KT Kingsley Posted October 3, 2017 Share Posted October 3, 2017 Possibly not relevant here, but… If you're just trying to avoid the hassle of having to type out commands then you might consider using gestures tied to function keys to issue them. Also, many vehicle scripts will let you specify and use a non-public chat channel to issue commands, which is aesthetically more pleasing (and something both llDialog and gestures can accommodate with ease). 1 Link to comment Share on other sites More sharing options...
angeoco Posted October 3, 2017 Author Share Posted October 3, 2017 (edited) Thanks a lot for those replies! The boat's script can't be modified, so it sounds like Innula's blue menu suggestion is the best option. I will give that a go. Update: Thanks KTK! The gestures option might work, I will look into that too. Edited October 3, 2017 by angeoco 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