Hello All
I wasn't sure where to out this put I saw the sticky post on function requests and this IS a form of scripting
ideas, so . . .
I have been scripting for a while now and I've noticed that there quite a few things that we scripters would LOVE to be able to do but can't. There are usually workarounds to most problems but most are either too complex or have certain in-game limitations to make them univarsally applicable.
Now, since BIS has provided us with new commands in the past (eg onMapSingleClick etc) it seems that the only thing stopping them from making up new commands all the time is the time and effort it would require to make them up. A fair point, but if we the community let them know how much we need these commands maybe they might decide to help us out.
So for starters, here are the commands that I'd like to see in patch 1.97 . . . ;D
getElevation Vehicle - Returns the weapon elevation of an animated object such as a man or turret, in degrees.
getStance Vehicle - Returns the stance of a man object. Returned value is one of "Standing", Crouched" or "Prone".
This command may be a bit hard to implement I know, since AFAIK "stance" is not a defined animation step or anything. Besides, how would it work if it was applied to a vehicle or a weapon. My answer ? - see the following . . .
entry configEntry Object - Returns the specified config entry value of the specified object.
For example,
"modelOptics" configEntry "M16" would return
"optika_M16".
I'm pretty sure that the first command is doable as it's simply an analogy to getPos, getDirection etc.
The second command is tougher, but if each CfgAnimation was modified to include the resulting "stance" of the unit then the last command would be able to return it.
And of course, the last command should be doable since the engine should know all these things anyway. The only problem here is that it might be difficult for the engine to extract this info in game . . . :-\
One last query - does anyone know if it is possible to define new entries in a config, and if so, can you use that info in any way ? For instance, could I make a definition "burnable=true" or "breakable=false" or whatever ?
It would be really good to be able to define a new object characteristics and use that in game by way of a script or eventhandler or whatever (eg - if burnable configEntry _object = true then goto "burnRoutine").
That's my two cents worth. Does anyone else have any ideas for new commands ? Doe anyone know if the above is doable/ not doable/ silly ?
Thoughts and comments appreciated.
Cheers
Roni