Skip to content

Reflected objects ​

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

The engine's own method tables, callable by name.

ExportSummary
ShReflectMethodThe function behind a method name, 0 when absent.
ShReflectMethodsEvery method of the object's class, in table order.
ShReflectClassHashThe class hash, through the descriptor getter.
ShReflectCallCall a method by name on the game thread and wait.
ShSceneEnterA scene is any reflected object with Enter and Exit.
ShSceneExitSee ShSceneEnter.
ShGameFlowThe GR_GameFlow machine, identity checked.
ShGameFlowObject—
ShHybridMenuThe HybridMenu, the shell every menu page lives in.
ShTriggerGameOverThe real thing: death, card and checkpoint reload.

ShReflectMethod ​

c
SH_API int  ShReflectMethod(uint64_t obj, uint32_t nameHash,
                            uint64_t *outFn);

The function behind a method name, 0 when absent.

scripthook.h, line 3092

ShReflectMethods ​

c
SH_API int  ShReflectMethods(uint64_t obj, ShMethod *out, int max);

Every method of the object's class, in table order.

scripthook.h, line 3095

ShReflectClassHash ​

c
SH_API uint32_t ShReflectClassHash(uint64_t obj);

The class hash, through the descriptor getter.

scripthook.h, line 3097

ShReflectCall ​

c
SH_API int  ShReflectCall(uint64_t obj, uint32_t nameHash,
                          uint64_t a1, uint64_t a2, uint64_t a3,
                          uint64_t *outRet);

Call a method by name on the game thread and wait. obj is this; up to three more integer arguments.

scripthook.h, line 3102

ShSceneEnter ​

c
SH_API int  ShSceneEnter(uint64_t obj);

A scene is any reflected object with Enter and Exit. Enter refuses objects without Exit, so it can be undone.

scripthook.h, line 3116

ShSceneExit ​

c
SH_API int  ShSceneExit(uint64_t obj);

Documented together with ShSceneEnter just above.

scripthook.h, line 3117

ShGameFlow ​

c
SH_API uint64_t ShGameFlow(void);

The GR_GameFlow machine, identity checked.

scripthook.h, line 3120

ShGameFlowObject ​

c
SH_API uint64_t ShGameFlowObject(int slot);

No doc comment in the header.

scripthook.h, line 3127

ShHybridMenu ​

c
SH_API uint64_t ShHybridMenu(void);

The HybridMenu, the shell every menu page lives in.

scripthook.h, line 3130

ShTriggerGameOver ​

c
SH_API int  ShTriggerGameOver(int reason);

The real thing: death, card and checkpoint reload. Reason 1 is the one verified in game.

scripthook.h, line 3135

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