![]() |
getParameter - extended DeviceLink replacement
1 Attachment(s)
Attached is a list of parameters that can be inquired by a script from the CloD engine as in the following example:
float health = (float)aircraft.getParameter(part.ParameterTypes.M _Health, -1); This allows creation of instruments panels on external monitors, virtual cockpits, etc. Sample from naryv for offline use (prints out TAS and alt) Code:
using maddox.game; |
thanks for this- made life alot easier to see how they've done things- there's many more 'parameters' to play with than old IL2 devicelink- very extended:-P
i'm very new to this scripting lark but managed to get some bombsight parameters writing to screen:-P this does lead me to think that if any efforts are to be made in this direction there is a decision to be made with the output, i feel, there being a choice with separate instrument gauge and model instant values available for some params- chart makers will want one set, instrument replicators wanting another set- or start from scratch with a new protocol. any thoughts? |
Can this be used to create a speedbar like in IL2-1946? ie speed, altitude & heading?
|
http://simhq.com/forum/ubbthreads.ph...ml#Post3347984
i;ve just changed a few things to read other params |
Updated the 1st message with a sample from naryv.
|
Great finding Ataros, now I've got the subject quite clear and I think with a litle bit of programming an interface it would be quite simple to make external gauges work, either in a second monitor or using phidgets I think. :grin:
I'll start coding a little bit tonite to see what are exactly the possibilities that open up doing the things like this. Great news. |
Sorry, I think I've seen it in another of your posts Ataros, but I cannot find it now so could you please tell me which are the dll's containing the maddox.game namespace?
Thanks in advance. |
Do you mean this post?
Quote:
|
Yes, thanks mate :)
|
Quote:
which programming language is this and what how do I make CoD execute it ? EDIT: ok I got it. It's C#. But this works only for custom missions, right ? http://simhq.com/forum/ubbthreads.ph...3347984/2.html thanks, Tex |
All times are GMT. The time now is 11:18 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.