I'm going to make a script/function method to detect the crouching. Probably the going into crouch, because it's pretty failsafe in my opinion. And if you know when a unit crouches, you know enough. Will start to make solutions to detect if a unit goes from prone to stand and crouch to stand later on. But of course, all of these have to be tested thoroughly. That's why I'll put it here every time I have completed a (for me) working function (/ +script).
EDIT: Have started with making the goesCrouch function and it works when the player is on flat terrain, but as most of you probably know, this is pretty easy to reach. The hardest part is still to come, making it work if you're on a hill and then crouching. Don't know if it works if you run and crouch, will have to test this and probably include this later. But, I think that the goesProne one is more important, if that one works it should be possible to make something for crouching too.
EDIT1: Okay, I've finished the first version of the goesCrouch function. The first post does now include the DetectPosition1.01 file, which is the newest version. It includes the goesCrouch function with script for use in a mission as well as a test mission that will allow you to help me with debugging the goesCrouch function. But I would prefer it if you guys could test goesProne first, as that might be the key to victory over the OFP engine in the detection of a unit's position.
I've updated the readme, be sure to read the last part, 12. NOTES. It tells you something about this new version, especially about the goesCrouch function. If you want to
help me with improving these scripts/functions the best way to start is to
start testing the
goesProne function with the help of the
demo mission: goesProne.Intro. I'd like to know what you want to have included included in a next release. If you know what functionality you want to have included in future versions, send me a message, either a mail or IM/PM on this forum. Or you can put it together with other feedback in a post in this topic.
Hope that I updated you guys enough, if not, you might want to read the readme to find what you're looking for, or else you can always contact me. You know how.
EDIT2: Found an interesting reply by
h- (hater_kint):
I mean, if someone has gone prone like 56 minutes ago and you want to check whether he is still prone?
No can do with this method, not with the optimal way..
And still the crouched stance would be missing...
You will now be able to do this, well there's a function to check crawling included in my pack, but that still isn't a very good way of solving the problem. Well at least we can try to make it work as good as possible.