tosstime entity property. The entity does not change vertical velocity until elapsed time (the main timer) is >= tosstime.tosstime property. Here's an example that will make the entity stay wherever it is on the Y axis for 500 centiseconds. You don't need to worry about resetting it for other animations (ex. if you get hit out of the move) because the engine does that automatically.int elapsed_time = openborvariant("elapsed_time");
int toss_time = elapsed_time + 500;
changentityproperty(<entity>, "tosstime", toss_time);
tosstime entity property. The entity does not change vertical velocity until elapsed time (the main timer) is >= tosstime.tosstime property. Here's an example that will make the entity stay wherever it is on the Y axis for 500 centiseconds. You don't need to worry about resetting it for other animations (ex. if you get hit out of the move) because the engine does that automatically.int elapsed_time = openborvariant("elapsed_time");
int toss_time = elapsed_time + 500;
changentityproperty(<entity>, "tosstime", toss_time);
thank you Finally, the air skill to go straight without being influenced by gravity has been implemented.Use thetosstimeentity property. The entity does not change vertical velocity until elapsed time (the main timer) is >=tosstime.
To do this, get the current elapsed time value, and add the amount of air time you want, then set that as thetosstimeproperty. Here's an example that will make the entity stay wherever it is on the Y axis for 500 centiseconds. You don't need to worry about resetting it for other animations (ex. if you get hit out of the move) because the engine does that automatically.
C:int elapsed_time = openborvariant("elapsed_time"); int toss_time = elapsed_time + 500; changentityproperty(<entity>, "tosstime", toss_time);
Things not to do:
Each of these are tempting and often tried by beginners because they look easy, but none of them are meant for what you're doing and will cause you severe problems.
- Don't use offsets.
- Don't use movea or seta.
- Don't use antigravity.
DC