Theme
Motion
Push things rather than teleporting them.
| Export | Summary |
|---|---|
ShGetVelocity | Metres a second, world axes, Z up. |
ShSetVelocity | See ShGetVelocity. |
ShAddVelocity | See ShGetVelocity. |
ShGetAngularVelocity | Radians a second about each world axis. |
ShSetAngularVelocity | See ShGetAngularVelocity. |
ShAddAngularVelocity | See ShGetAngularVelocity. |
ShShove | A push at a world point, shoving and spinning like a hit on a corner. |
ShCanMove | True when velocity moves this entity. |
ShGetVelocity
c
SH_API int ShGetVelocity(uint64_t entity, ShVec3 *out);Metres a second, world axes, Z up. Clamped to 200.
scripthook.h, line 1956
ShSetVelocity
c
SH_API int ShSetVelocity(uint64_t entity, const ShVec3 *v);Documented together with ShGetVelocity just above.
scripthook.h, line 1957
ShAddVelocity
c
SH_API int ShAddVelocity(uint64_t entity, const ShVec3 *v);Documented together with ShGetVelocity just above.
scripthook.h, line 1958
ShGetAngularVelocity
c
SH_API int ShGetAngularVelocity(uint64_t entity, ShVec3 *out);Radians a second about each world axis.
scripthook.h, line 1961
ShSetAngularVelocity
c
SH_API int ShSetAngularVelocity(uint64_t entity, const ShVec3 *v);Documented together with ShGetAngularVelocity just above.
scripthook.h, line 1962
ShAddAngularVelocity
c
SH_API int ShAddAngularVelocity(uint64_t entity, const ShVec3 *v);Documented together with ShGetAngularVelocity just above.
scripthook.h, line 1963
ShShove
c
SH_API int ShShove(uint64_t entity, const ShVec3 *dir,
float strength, const ShVec3 *atWorldPos);A push at a world point, shoving and spinning like a hit on a corner. NULL point gives a pure shove.
scripthook.h, line 1968
ShCanMove
c
SH_API int ShCanMove(uint64_t entity);True when velocity moves this entity. Characters run on a controller that ignores it, resting bodies sleep.
scripthook.h, line 1974