If you just want human players to roll, it's a lot more simple
You make up two anims, one rolling right, one left..
Then you make a config up (Simple enough)
And a script..
rolling.sqs
With something like this :
_unit = _this select 0
_way = _this select 1
?(_way == "left"): GOTO "rollleft"
?(_way == "right"):GOTO "rollright"
EXIT
#rollleft
_unit playmove rollleft
EXIT
#rollright
_unit playmove rollright
EXIT
Thats a more complicated way, but it only needs one script
Then add this to the players INIT field :
this addaction ["Roll Left",{[this,"left"] exec "/rolling/rolling.sqs"}]; this addaction ["Roll Right",{[this,"right"] exec "/rolling/rolling.sqs"}];
Then all we have to do is check if the unit is prone (I'm still waiting on a function that does that...
), and if not, exit the script.. But it doesn't matter for a test
- Ben