Hi All
Well, here it is ! Attached please find the Jump script, as promised. Sorry about the delay penguinman, I was messing around with "super jumps" and floating characters and got sidetracked.
The zip file contains the script and a mission file to go with it. The mission simply consists of one man with the script as an addAction, as well as two fences in front of him with the script attached to triggers. Try both ways and see what you like.
The mission contains a present animation - I tried heaps but if anyone knows of a better one then by all means please feel free to substitute your own. The mission also contains a custom sound, feel free to delete or replace this if you don't like it.
You can change the jump height by changing the value at the end of the _xZ assignment. A value of 5 might look a bit high, but it does allow you to jump over most fences that look like they should be jumpable. For a laugh, try a value of 250 and watch your man go to 1000 feet before splatting back to earth ! :beat:
Speaking of which - my little sidetracks (above) revealed that while a man is in the air he can't change direction or change his velocity vector. One little test simply kept the targets upward velocity near zero with a very fast loop - this had the effect of making him "float" or "surf" if he was low to the ground ! If anyone wants I can add that bit back !
Good luck with it !
Cheers
roni