You are reading the docs of SDK 1.1.0, an older release. See the latest (1.11.0).
Reference · SDK 1.1.0
Hook points
Functions of Ratchet & Clank your mod can take over: 643 in all, 6 of them stable
Hook points
Start with:
6 hook points
rac1.pad.process_report
One pad report into the pad's state (PadState, at pad), each poll, before the tick reads it.
Also named Pad_ProcessReport · Discs: PAL, NTSC
Start a mod with it
Do something, call the original, maybe do more after.
main.luau
openrac.hook("rac1.pad.process_report", function(original, pad, report, size)
-- before: change an argument, count a call, ...
original(pad, report, size)
-- after
end)Name it in your manifest too: "hooks": ["rac1.pad.process_report"]. Open it in the manifest builder
Fields
Game state a script reads and writes by name: openrac.fields.hero.position.x. Experimental: these name the game's internals and follow the decompilation.
| Name | Type | What it is |
|---|---|---|
| hero.position.x | f32 | Where the hero is (gHeroPos). |
| hero.position.y | f32 | |
| hero.position.z | f32 | |
| hero.facing | f32 | The way he faces (rot.z), in radians. |
| hero.move_yaw | f32 | Where the stick moves him: the stick's angle plus the camera's yaw. |
| hero.state | i32read-only | His state: 0 standing, 2 running, 7 jumping, ... |
| bolts | i32 | The player's bolts. |
Generated from sdk/bindings/rac1.json at sdk-v1.1.0. Edit this page or report a problem.