//debugmode 3 //debugaievents 1 //debugaiflags 240 inert 1 onevent scriptedlanding gotolabel handlelanding1 1 eventdisable autobegin /* OK 1 check fallingmaxvelocityz 0.0 works OK 2 check setdormant 1 works OK 3 check fallingaddedacceleration workss 4 check fallingmaxvelocityz < 0 works 5 check fallingmaxvelocityxy works */ // mdf-tbd -- make time a parameter for dormant? dormant 1 sleep 2.0 dormant 0 // fall slowly, looping this animation setproperty pawn fallingmaxvelocityZ -1200.0 //drift a bit while falling setproperty pawn fallingaddedacceleration (X=0.0,Y=-50.0,Z=0.0) sleep 1 //drift a bit while falling setproperty pawn fallingaddedacceleration (X=250.0,Y=50.0,Z=0.0) sleep // reset normal falling speed and head to destination :handlelanding1 message "landing #1!" 1 setproperty pawn fallingmaxvelocityZ default setproperty pawn fallingaddedacceleration default stopmovement // landedhard not working? sleep 3.0 setproperty pawn fallingmaxvelocityZ 200.0 message "jump start!" 1 setproperty pawn fallingaddedacceleration (X=0.0,Y=0.0,Z=3000) jump 0 0 400 sleep 6.0 // mdf-tbd: how to stop at a specific height? Will landed work when hitting head? setproperty pawn fallingaddedacceleration default setproperty pawn fallingmaxvelocityZ -400 onevent scriptedlanding gotolabel handlelanding2 1 sleep :handlelanding2 message "landing #2!" 1 setproperty pawn fallingmaxvelocityZ default sleep 0.5 gotoactor pathnode5 inert 0 sleep