Skip to content

Motion ​

Group motion · 8 exports · from forks/gamexueren/scripthook.h (framework 1.0-beta7-wildm1, SH_API_VERSION 2)

Push things rather than teleporting them.

ExportSummary
ShGetVelocityMetres a second, world axes, Z up.
ShSetVelocitySee ShGetVelocity.
ShAddVelocitySee ShGetVelocity.
ShGetAngularVelocityRadians a second about each world axis.
ShSetAngularVelocitySee ShGetAngularVelocity.
ShAddAngularVelocitySee ShGetAngularVelocity.
ShShoveA push at a world point, shoving and spinning like a hit on a corner.
ShCanMoveTrue 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

WildM is an independent community project. It is not affiliated with or endorsed by Ubisoft. Ghost Recon Wildlands is a trademark of Ubisoft Entertainment.