Skip to content

Ground ​

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

Height through engine physics, near the player.

ExportSummary
ShPhysicsReadyPredicate only, never installs anything.
ShGroundHeightSee ShPhysicsReady.
ShGroundHeightFromProbe from a given height, for stacked geometry like bridges and caves.
ShProbeSurfaceCasts the ScriptHook-owned downward ray and copies its first collision record before the physics scratch storage can be reused.
ShTeleportPlayerToGroundSee ShProbeSurface.

ShPhysicsReady ​

c
SH_API int  ShPhysicsReady(void);

Predicate only, never installs anything.

scripthook.h, line 2814

ShGroundHeight ​

c
SH_API int  ShGroundHeight(float x, float y, float *outZ);

Documented together with ShPhysicsReady just above.

scripthook.h, line 2815

ShGroundHeightFrom ​

c
SH_API int  ShGroundHeightFrom(float x, float y, float nearZ,
                               float *outZ);

Probe from a given height, for stacked geometry like bridges and caves.

scripthook.h, line 2819

ShProbeSurface ​

c
SH_API int  ShProbeSurface(float x, float y, float nearZ,
                           ShSurfaceProbe *out);

Casts the ScriptHook-owned downward ray and copies its first collision record before the physics scratch storage can be reused.

scripthook.h, line 2829

ShTeleportPlayerToGround ​

c
SH_API int  ShTeleportPlayerToGround(float x, float y,
                                     float clearance);

Documented together with ShProbeSurface just above.

scripthook.h, line 2831

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