sunski34 Posted June 9, 2017 Posted June 9, 2017 (edited) Hi, My final tests on next version of ATME highlight a problem with modules which accept two players like L39, gazelle or the future F14. Actually, Scripting Engine needs groupId to send message (text or sound) or to add menus/items in the F10 menu of a player. We all know there's a bug with Group:getID function and we need to read the mission datas to get the good groupId. Actually, if two players are in the same group, they all see the text message and ear the sounds using appropriate scripting engine function. Same for F10 menu, but in that case, that may be a problem : The two players in the same group share the same F10 menu so conflict may appear if the two players use for example opposite F10 menu item ! In that case, inconsistencies may appear. At this time, it's not a big limitation to limit the number of players in a group (1 player max). But in the future, neither groupId nor unitId wil be enough. I can't imagine having two players in a F14 (one pilot and one navigator) with same displays, same sound and mainly same F10 menus. I want to know how those scripting engine group functions will change in the future with the new F14 module. Sunski. Edited June 9, 2017 by sunski34
Grimes Posted June 9, 2017 Posted June 9, 2017 Hard to say really. So far getting the sound, message, and command menu at the unit level has't progressed beyond the feature request, so subdividing that into a single aircraft is a little more unlikely. It is needed, but unfortunately as much as some of us want certain things its still up to ED to decide to implement it or not. That said it is a good point and I'll file a feature request for it. Aside for that there is a feature request for something like Unit.getSeats() to get information for multicrew aircraft. Specifically because Unit.getPlayerName() only returns the pilot and not anyone sitting in another seat. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
sunski34 Posted June 9, 2017 Author Posted June 9, 2017 (edited) Thank you Grimes... It is not a request just a question.... Of course, I think that having those functions on Unit level class and not Group class will be better even if it is not enough for multicrew aircrafts... If it isn't possible having a Seat equivalent class under Unit, we just have to code the good controls on F10 menus and have the ability to be sure that menu events (call of the callback ;) ) will arrive in the good order regarding their time creation. In that case, it is possible to avoid inconsistencies. Edited June 9, 2017 by sunski34
Recommended Posts