GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
Loading...
Searching...
No Matches
Motion

Push things rather than teleporting them. More...

Functions

SH_API int ShGetVelocity (uint64_t entity, ShVec3 *out)
 Pass an entity, never a body id: an entity owns several bodies and these calls write every one of them.
SH_API int ShSetVelocity (uint64_t entity, const ShVec3 *v)
SH_API int ShAddVelocity (uint64_t entity, const ShVec3 *v)
SH_API int ShGetAngularVelocity (uint64_t entity, ShVec3 *out)
 Radians a second about each world axis.
SH_API int ShSetAngularVelocity (uint64_t entity, const ShVec3 *v)
SH_API int ShAddAngularVelocity (uint64_t entity, const ShVec3 *v)
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.
SH_API int ShCanMove (uint64_t entity)
 True when velocity moves this entity.

Detailed Description

Push things rather than teleporting them.

Function Documentation

◆ ShGetVelocity()

SH_API int ShGetVelocity ( uint64_t entity,
ShVec3 * out )

Pass an entity, never a body id: an entity owns several bodies and these calls write every one of them.

Metres a second, world axes, Z up. Clamped to 200.

◆ ShSetVelocity()

SH_API int ShSetVelocity ( uint64_t entity,
const ShVec3 * v )

◆ ShAddVelocity()

SH_API int ShAddVelocity ( uint64_t entity,
const ShVec3 * v )

◆ ShGetAngularVelocity()

SH_API int ShGetAngularVelocity ( uint64_t entity,
ShVec3 * out )

Radians a second about each world axis.

◆ ShSetAngularVelocity()

SH_API int ShSetAngularVelocity ( uint64_t entity,
const ShVec3 * v )

◆ ShAddAngularVelocity()

SH_API int ShAddAngularVelocity ( uint64_t entity,
const ShVec3 * v )

◆ ShShove()

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.

◆ ShCanMove()

SH_API int ShCanMove ( uint64_t entity)

True when velocity moves this entity.

Characters run on a controller that ignores it, resting bodies sleep.