|
GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
|
Errors, versioning and the shared types. More...
Data Structures | |
| struct | ShVec3 |
| Metres. More... | |
Macros | |
| #define | SH_API_VERSION 1 |
| #define | SH_API |
Typedefs | |
| typedef int(*) | ShGetHealthPlayer_t(uint32_t *, uint32_t *) |
| typedef int(*) | ShSetHealthPlayer_t(uint32_t) |
| typedef int(*) | ShSetGodModePlayer_t(int) |
| typedef int(*) | ShPhysicsReady_t(void) |
| typedef int(*) | ShGroundHeight_t(float, float, float *) |
| typedef int(*) | ShTeleportPlayerToGround_t(float, float, float) |
Enumerations | |
| enum | ShError { SH_OK = 0 , SH_ERR_BAD_ARG , SH_ERR_NO_GLOBAL , SH_ERR_NO_POSITION , SH_ERR_NO_CANDIDATE , SH_ERR_NO_ROOT , SH_ERR_UNWRITABLE , SH_ERR_NOT_ENTITY , SH_ERR_HOOK_FAILED , SH_ERR_NO_PHYSICS , SH_ERR_NO_GROUND , SH_ERR_NOT_IN_GAME , SH_ERR_NOT_STREAMED , SH_ERR_CONTROLLER , SH_ERR_UI_NOT_READY , SH_ERR_UI_PROP , SH_ERR_UI_ASSET } |
| Every int function returns 1 on success, 0 on failure, and on failure ShLastError carries one of these. More... | |
Functions | |
| SH_API int | ShLastError (void) |
| The last error for the calling context. | |
| SH_API const char * | ShErrorString (int err) |
| The readable name of an error code. | |
| SH_API int | ShGetVersion (void) |
| SH_API_VERSION, for compatibility checks. | |
Errors, versioning and the shared types.
| #define SH_API_VERSION 1 |
| #define SH_API |
| typedef int(*) ShGetHealthPlayer_t(uint32_t *, uint32_t *) |
| typedef int(*) ShSetHealthPlayer_t(uint32_t) |
| typedef int(*) ShSetGodModePlayer_t(int) |
| typedef int(*) ShPhysicsReady_t(void) |
| typedef int(*) ShGroundHeight_t(float, float, float *) |
| typedef int(*) ShTeleportPlayerToGround_t(float, float, float) |
| enum ShError |
Every int function returns 1 on success, 0 on failure, and on failure ShLastError carries one of these.
| SH_API int ShLastError | ( | void | ) |
The last error for the calling context.
| SH_API const char * ShErrorString | ( | int | err | ) |
The readable name of an error code.
| SH_API int ShGetVersion | ( | void | ) |
SH_API_VERSION, for compatibility checks.