Theme
Ground
Height through engine physics, near the player.
| Export | Summary |
|---|---|
ShPhysicsReady | Predicate only, never installs anything. |
ShGroundHeight | See ShPhysicsReady. |
ShGroundHeightFrom | Probe from a given height, for stacked geometry like bridges and caves. |
ShProbeSurface | Casts the ScriptHook-owned downward ray and copies its first collision record before the physics scratch storage can be reused. |
ShTeleportPlayerToGround | See 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