Skip to main content
These tables work on the local skater: the player’s own, on their own game. Each function needs a permission, named in its section:
  • skater.read: reskate.skater.get, position, heading, speed, on_ground, telemetry, movement, goofy, frame, flip_state, animation_values and rail_target; reskate.physics.tuning and find.
  • skater.teleport: reskate.skater.teleport.
  • events.skater: reskate.skater.state.
  • skater.control: reskate.skater.noclip, boost, freeze, wipeout, shape_launch, hide, push, push_wait, push_reset, hold, set_velocity, cruise, flip_speed and select_rail_target; reskate.physics.tune, competition, stock_ready and prepare.
  • skater.animation: reskate.skater.reach, pose, carry and set_animation_value.
  • overlay: reskate.skater.xray.
  • camera: reskate.skater.bone_cam.
  • events.tricks: reskate.score.current, reskate.tricks.feed and reskate.tricks.gesture.
  • trainer: reskate.trainer.set_point and back.
  • hud: reskate.hud.hide and reskate.hud.corner.
  • hud.score: reskate.hud.score_line.
Calling a function without its permission raises an error. See permissions. For the world around the skater (reskate.world.raycast and the rest) see world; for its board, see board.

Positions and headings

A position is a Luau vector in metres, in the world’s frame: y is up. Make one with vector.create(x, y, z). A position you pass must be finite and within 100 km of the map’s centre, or the call raises an error. A heading is in radians about world up, from -pi to pi. A heading of 0 faces +Z, pi/2 faces +X, and a higher heading is turned to the skater’s left. Teleports take a heading the same way.

Reading the skater

reskate.skater.get()

The local skater as the game has it this tick. Use it when you need more than one value: it reads them all at once.
table or nil
nil when there is no skater (in a menu, during a load).
Needs the skater.read permission.

reskate.skater.position()

The skater’s position, or nil without a skater.
vector or nil
Where the skater is.
Needs the skater.read permission.

reskate.skater.heading()

The way the skater faces, or nil without a skater.
number or nil
Radians, -pi to pi.
Needs the skater.read permission.

reskate.skater.speed()

The skater’s speed over the ground, or nil without a skater.
number or nil
Metres per second.
Needs the skater.read permission.

reskate.skater.on_ground()

Whether the skater is on the ground, or nil without a skater.
boolean or nil
False while it is in the air.
Needs the skater.read permission.

reskate.skater.state()

The skater’s physics state, as a name. The skater_state event tells you when it changes (see events).
string or nil
One of "riding", "air", "wipeout", "grinding", "off_board", "planted", "other" or "none". nil when there is no skater.
Needs the events.skater permission.

reskate.skater.telemetry()

Everything a game mode measures of the local skater in one read: its motion, its last jump, the physics state the game chose, and the slams of a bail. It is the trainer’s own telemetry, updated every client tick.
table or nil
nil where ReSkate cannot read the game (a server copy).
The last table: The watch table:
Needs the skater.read permission. slam and struck are news since your plugin’s own last read: each plugin hears of a slam once, whatever other plugins read. The first read only takes your place, so slams before it are not reported. They are followed only while the Bone Cam would show or a plugin asks for it (see bone_cam). Read the telemetry once a tick and keep what you need.

reskate.skater.movement()

How the local skater is moving, on the board or on foot, and where the player is pushing the movement stick. For a plugin that moves something with the skater, or steers by the stick the way the game’s own walking does.
table or nil
nil without a local skater, or when its velocity does not read as one (a number that is not finite, or over 100 m/s on an axis).
Needs the skater.read permission. stick, device and focused are there only when the plugin also has input.

reskate.skater.goofy()

The stance the player chose in the game.
boolean or nil
True for goofy, false for regular. nil when the game cannot be read.
Needs the skater.read permission.

Moving the skater

reskate.skater.teleport(position, heading, options)

Moves the skater to position, facing heading. The teleport is sent at once and happens within a few seconds.
vector
required
Where the skater goes. Finite, within 100 km.
number
default:"the skater's heading now"
Radians. Any finite number; it is wrapped into -pi to pi.
table
boolean
True when the teleport was sent. It does not mean the skater has arrived.
string
Why not, when ok is false: "asked more than twice in a second", "the host has turned teleporting off" or "teleporting is unavailable now (no skater, or a load)".
A position or heading that is not finite raises an error. The game’s refusals return false and why. on_board sets the game’s own arrival preference as the move is carried out. The game can keep that preference for later teleports: leaving the option out keeps it as it is, and nothing puts it back. Pass on_board on every teleport whose arrival matters to you. When the preference cannot be set, the move still happens, with the board as it is: during a match that holds the skater on or off its board, or while No Bail holds the board.
Needs the skater.teleport permission. At most 2 teleports a second, counted together with reskate.trainer.back. In a session whose host has turned teleporting (and noclip) off, every teleport is refused.

reskate.skater.noclip(on)

Turns noclip on or off, as the console’s own noclip does: the skater flies through the world.
boolean
required
True for on, false (or nothing) for off.
boolean
True when the change was queued. It takes effect at the game’s next tick.
string
Why not: "the host has turned noclip off", "asked more than 4 times in a second", or the game’s own reason ("the game is busy; try again").
Needs the skater.control permission. At most 4 calls a second, a budget shared with the plugin’s other control calls (noclip, boost, freeze, camera.follow, ai.spawn, animation.play, board.toss, outfit.set).

reskate.skater.boost(kind)

Gives the skater a push, as the console’s boosts do.
string
required
"forward", "up" or "offboard" (up, off the board). Anything else raises an error.
boolean
True when the boost was queued.
string
Why not: "the host has turned boosts off", "asked more than 4 times in a second", or the game’s own reason.
Needs the skater.control permission. Shares the budget of 4 control calls a second (see noclip).

reskate.skater.freeze(on)

Holds the skater where it is: noclip with no input, so it hovers in place. The skater stays held while any plugin asks for it, and is let go when the last one stops asking.
boolean
required
True to hold the skater, false (or nothing) to let it go.
boolean
True when this plugin’s ask was taken.
string
Why not: "the host has turned noclip off", "asked more than 4 times in a second", or the game’s own reason.
Needs the skater.control permission. Shares the budget of 4 control calls a second. When the plugin stops, its hold is let go.

reskate.skater.wipeout(force)

Makes the skater bail, as a slam of that force would.
number
default:"2.5"
0.5 to 3. Out of range raises an error.
boolean
True when the wipeout was asked for.
string
Why not: "one wipeout every 2 s" or "not while a throwdown runs".
Needs the skater.control permission. One wipeout every 2 seconds; a refused call counts too. While No Bail protects the skater, the wipeout is asked for but dropped, as any other wipeout is: ok is still true, and the skater rides on.

Push and hold

A game mode sets the skater’s speed after a restart, and keeps it still for a countdown, with these. They write the board’s velocity in the skater’s physics, so other players see your skater move as it does.
A push or a hold takes effect only while the competition’s stock physics is on: reskate.physics.competition(true) (see stock physics), from your plugin or another. Without it, push and hold(true) return false and say so.

reskate.skater.push(velocity)

Sets the skater’s velocity once it is on its board: the next physics step with the skater on its board writes it. The push waits for that step for 2 seconds, then is dropped. The velocity replaces the skater’s own, fall speed included.
vector
required
Metres per second, in the world. Level: y is 0. Each axis within 100 m/s, and at most 120 m/s over the ground.
boolean
True when the push is waiting for its physics step.
string
When ok is false: "a push is horizontal (y 0) and at most 120 m/s", or "a push needs the game's stock physics: reskate.physics.competition(true) first".
A velocity that is not a vector, not finite, or over 100 m/s on any axis raises an error. A new push replaces one still waiting, whichever plugin asked for it.
Needs the skater.control permission. One push waits at a time, for every plugin together.

reskate.skater.push_wait()

Gives the push that is waiting 2 more seconds from now. Call it while the skater is still getting back on its board, after a bail or a teleport. A push that has already been dropped is not brought back.
boolean
True.
Needs the skater.control permission.

reskate.skater.push_reset()

Drops the push that is waiting, if there is one.
boolean
True.
Needs the skater.control permission.

reskate.skater.hold(on)

Keeps the board still while the skater is on it: no velocity and no turning, every physics step. A push that is waiting still wins over the hold, so you can hold the skater for a countdown and push it at “go” without letting go first.
boolean
required
True to hold the board, false (or nothing) to let it go.
boolean
True, unless the hold cannot take effect.
string
"a hold needs the game's stock physics: reskate.physics.competition(true) first", for hold(true) while the stock physics is off. Letting go always works.
Needs the skater.control permission. The plugin that last held the board owns the hold: another plugin’s hold(false) does nothing. When the plugin stops, its hold is let go.

reskate.skater.set_velocity(velocity, add)

Sets the board’s velocity, or adds to it, at the next physics step that has the skater on its board, on the ground or in the air. For keeping speed through a teleport, a launch, a tow, or steering something the skater rides. Unlike push, it needs no stock physics, keeps y, and works in the air.
vector
required
Metres per second, in the world. At most 100 m/s on each axis.
boolean
default:"false"
True to add it to the board’s velocity (an impulse) instead of replacing it.
boolean
True when the velocity waits for its physics step.
string
When ok is false: "the host has turned boosts off", in a session whose host turned boosts off, or "not while a throwdown runs" (unless the game’s stock physics is on, as a game mode has it).
Needs the skater.control permission. The velocity waits 500 ms for a physics step with the skater on its board, then is dropped: off the board (bailed, walking) or while a teleport is under way, nothing is written. A new call replaces one still waiting, whichever plugin made it. A velocity that is not a finite vector, or over 100 m/s on any axis, raises an error.

reskate.skater.cruise(speed, may_slow)

Cruise control: carries the skater up to a speed while it rolls, with no pushing. The skater must be rolling (at least 1 m/s) and not braking; it gains up to 0.15 m/s a physics step until it reaches the speed. Pushing still works as usual, and can take the skater faster. It needs no stock physics.
number
default:"0"
Metres per second over the ground, 1 to 30. 0 or nothing turns it off.
boolean
default:"false"
True to also ease the skater down to the speed when it is going more than 0.3 m/s faster (at most 0.1 m/s a physics step), never while it pushes. For keeping pace with someone.
boolean
True when the cruise control is on (or off).
string
When ok is false: "the host has turned boosts off", in a session whose host turned boosts off, or "not while a throwdown runs". Turning it off always works.
Needs the skater.control permission. It lasts 300 ms: call it every tick to keep it on. A speed that is not 0 or 1 to 30 raises an error. One cruise speed is kept for every plugin together: the last call wins.

Flip speed

reskate.skater.flip_speed(factor)

Makes flip tricks in the air turn faster or slower for a moment, on top of the player’s own Flip trick speed in the trainer, which it never changes. For a flip that slows while the flick is held, mid-air.
number
default:"1"
0.05 to 10 times the speed the flip would turn at. 1 (or nothing) ends your plugin’s factor at once.
boolean
True when the factor is in force (or ended).
string
When ok is false: "the host has turned boosts off", in a session whose host turned boosts off; "the host sets the physics", in a session whose host’s physics everyone skates with; or "not while a throwdown runs" (unless the game’s stock physics is on, as a game mode has it). Ending your factor always works.
Needs the skater.control permission (the example also needs input and skater.read). A factor lasts 300 ms: call it every tick to keep it. Every plugin’s factor counts, multiplied together. The game still finishes a slowed flip before the landing. A factor outside 0.05 to 10 raises an error. When the plugin stops, its factor ends.

Stock physics

reskate.physics puts the local skater on the game’s stock physics while the player competes, so everyone in a game mode rides the same tuning.

reskate.physics.competition(on)

Turns the competition’s stock physics on or off. While it is on, the local skater rides the game’s stock tuning, whatever the player’s trainer or a session’s host has set. When it goes off, the player’s own tuning comes back.
boolean
required
True while the local player competes, false (or nothing) after.
Returns nothing. Turning it on also reads the stock tuning, as prepare does.
Needs the skater.control permission. One plugin holds it: the last to turn it on. Another plugin’s competition(false) does nothing. When the plugin stops, it goes off if the plugin held it. reskate.skater.push and hold work only while it is on.

reskate.physics.stock_ready()

Whether the game’s stock tuning has been read. Until it has, the stock physics cannot be put on the skater.
boolean
True once the stock tuning is read.
Needs the skater.control permission.

reskate.physics.prepare()

Reads the game’s stock tuning now, switching nothing. Call it before a match, so competition(true) has the tuning ready when the match starts. Returns nothing.
Needs the skater.control permission.

Physics tuning

The game’s physics tuning, value by value, as ReSkate’s trainer has it: jump heights, push speeds, truck settings and the rest. A plugin reads them and sets its own over the player’s, for as long as it keeps them. ReSkate never saves a plugin’s values: the player’s own come back when the plugin lets go or stops. Each value has an id, the trainer’s name for it, such as "PhysicsMode.JumpMaxHeight"; case does not matter. A curve or graph is set as one multiplier on its outputs, and its id ends in " x". Use find to look ids up.

reskate.physics.tuning(id)

string
required
The value’s id, 1 to 200 characters.
table or nil
nil, with a second result saying why: "the game's physics tuning is not read yet" or "no tuning value is called \"<id>\"". The tuning is read once a level’s copy of it is loaded: on the splash screen, before any level, every value is not read yet.
Needs the skater.read permission.

reskate.physics.find(text)

The values whose id has every word of text in it, case aside. A word starting with ! must not be in the id.
string
required
At most 200 characters. "" lists from the start.
table
A list of at most 64 values, each as tuning gives it, in the trainer’s order. Empty while the tuning is not read (before a level’s copy is loaded).
Needs the skater.read permission.

reskate.physics.tune(id, value)

Sets a value over the player’s own. The value stays until you let go of it, the player changes it in the trainer (which takes it back from you), or your plugin stops. A value another value drives (a linked one’s graphs) follows it, as in the trainer.
string
required
The value’s id, 1 to 200 characters.
number, boolean or nil
required
The new value, within a million either way. A flag takes true or false (or 1 and 0), an integer is rounded, and a multiplier is at least 0. nil lets go: what was there before you set it comes back.
boolean
True when the value is set (or let go).
string
When ok is false:
  • "the game's physics tuning is not read yet": before a level’s copy of the tuning is loaded, no value is set. Letting go works at any time.
  • "no tuning value is called \"<id>\"".
  • "<plugin> tunes <id>": another plugin has set it.
  • "This session's host sets everyone's physics: you skate with the host's.": you are a guest in a session whose host’s tuning everyone skates with.
  • "the player has locked <id> in the trainer".
Needs the skater.control permission. An id that is not 1 to 200 characters, or a value that is not finite or is over a million either way, raises an error. Letting go of a value you did not set does nothing. In a session you host, your guests skate with your tuning, a plugin’s values included, as they do with the trainer’s.

Arm reach

Your skater’s arm reaches for a point in the world: the upper arm and forearm bend, so the hand gets there, with the elbow out from the body and a little down and back. The arm bends after whatever the animation (or a clip) does with it, in the pose your game draws and sends to the other players, so they see your skater reach too.

reskate.skater.reach(goal)

table or nil
required
Where the hand goes. nil lets the arm go back to the animation.
boolean
True when the arm reaches (or is let go).
string
"<plugin> holds the skater's arm" when another plugin reached in the last 300 ms.
Needs the skater.animation permission. A reach lasts 300 ms: call it every tick to keep the arm there. One plugin reaches at a time; nil from another plugin does nothing. A hand that is not "right" or "left", an at that is not a finite vector, a rotation that is not 4 finite numbers with a length, or a weight outside 0 to 1 raises an error. Unlike clips, a reach also works while a throwdown runs. When the plugin stops, the arm is let go.

reskate.skater.hand(side)

Where one of your skater’s hand joints is in the world, as the pose was last worked out, after any reach. For putting something in the hand, or aiming from it.
string
default:"\"right\""
"right" or "left". Anything else raises an error.
table or nil
nil without a skater, and on the first call: asking keeps the hands read for 2 seconds, so call it every tick.
Needs the skater.read permission. To keep an object in a hand every frame, attach it to the joint with reskate.entities.set instead of moving it yourself.

reskate.skater.pose(joints, weight, options)

Turns, scales and moves joints of your skater on top of whatever the animation (or a clip) does, or sets them to a place of your own, in the pose your game draws and sends, so other players see it too. For a style of your own, a head shrunk out of a first-person view, a pose held, a tail of spare joints. A reach bends the arm after this.
table or nil
required
Keyed by joint, as reskate.skater.joint takes one (a number from 2 to 394, or a name), each with:nil (or {}) ends your pose.
number
default:"1"
0 to 1: how far from the animation to your pose.
table
boolean
True when the joints are posed (or let go).
string
"<plugin> poses the skater" when another plugin posed it in the last 300 ms.
Needs the skater.animation permission. A pose lasts 300 ms: call it every tick to keep it. One plugin poses at a time; nil from another plugin does nothing. Joints 0 and 1 place the skater in the world and cannot be posed. At most 128 joints at once, each once. A joint that is not one of those, a rotation that is not 4 finite numbers with a length, angles that are not a finite vector, a scale outside 0 to 10 (on any axis), an offset over 2 m, a place with neither a position nor a rotation, a keep_children that is not a boolean, or a weight outside 0 to 1 raises an error. So does a joint placed relative to itself or to a joint that hangs from it, and joints placed relative to each other in a circle. Joints are posed in an order that puts each after the joints it hangs from and the joint it is placed relative to. It also works while a throwdown runs. When the plugin stops, its pose ends.
A pose made only of offset, rotation, angles and scale (no place, no keep_children), with no clip, carry, reach or character room on the pose drawn, goes on as the pose is drawn, on top of each joint as the game’s body physics left it. The game’s body physics moves some joints after the animation (the hips as the skater pops from standing still), and this keeps that movement. Any other pose is written whole over the animation’s pose. Other players are sent the same pose either way.

reskate.skater.joint(joint)

Where one of your skater’s joints is in the world, as the pose was last worked out (after any clip and reach). For a hat on the head, a light on the board’s nose, a trail from a hand.
number or string
required
A joint of the skater’s animation skeleton, 0 to 394, or one of "right_hand" (49), "left_hand" (278), "head" (103), "hips" (7), "spine" (42) and "root" (1). Anything else raises an error.
table or nil
nil without a skater, and on the first call for a joint: asking keeps that joint read for 2 seconds, so call it every tick. ReSkate reads at most 32 of your skater’s joints at once, for every plugin together; past that, a joint not already read gives nil.
Needs the skater.read permission. reskate.session.joint reads another player’s.

Carrying something

Your skater holds something out in front of them and aims it, the way a person holds a camera or a phone they point: level, out in front at the chest under the eyes; aimed down, lower and closer, down to the stomach; aimed up, up past the face and over the head. The elbows keep a bend, the arms go round the body, and the other hand can hold it too, from the side and underneath. The body can crouch over it with the feet kept where they are, curl its back over it and look down at it, turn on the spot after it, and step round as it turns. It bends the pose after any clip and pose, and before any reach. The thing held is usually a cosmetic worn on the hand (an outfit item in a hand wear slot, weighted wholly to the hand): with grip, the hand turns so it points where you aim it.

reskate.skater.carry(goal)

table or nil
required
What is carried and how. nil lets it go.
boolean
True when it is carried (or let go).
string
"<plugin> has the skater carrying" when another plugin carried in the last 300 ms.
rotation_of stands for turning the camera’s right, up and back into a quaternion; the Filmer plugin’s plugin/hold.lua has one (from_rows).
Needs the skater.animation permission. A carry lasts 300 ms: call it every tick to keep it. One plugin carries at a time; nil from another plugin does nothing. A missing at or rotation, a hand that is not "right" or "left", a shown that is not one of the three, or a number out of its range raises an error. It also works while a throwdown runs. When the plugin stops, it is let go.

Launches

reskate.skater.shape_launch(from, shape)

Sets the speed of the local skater’s launches into the air out of from: across its direction of travel, along it, or up. The shape stands for every such launch until you change it. Each launch is told to every plugin with events.skater as the launch event, with what the game made of it and what it left with. The direction of travel is the board’s over the last few physics steps before the launch. Only the parts you give change; the rest stay the game’s, as do the trick, the flip and the rotation.
string
required
What the launches come out of: "grind" (a pop out of a grind or a slide), "ollie" (riding or out of a manual), "no_comply" or "boneless".
table or nil
required
The speeds, in metres per second, each set if given; at least one. nil gives these launches back to the game.
boolean
True when your plugin shapes these launches.
string
Why not: "<plugin> shapes <from> launches" (another plugin does) or "launches are unavailable for this game build".
A launch that across or along cannot apply to is left as the game made it: one slower than 0.5 metres per second over the ground (there is no direction of travel to measure against), or one that does not go along its travel at about the skater’s speed ("not_ours" in the launch event). up applies to every launch.
A from not one of the four, a shape that is not a table or sets nothing, or a speed out of range raises an error.
Needs the skater.control permission (and events.skater to hear the launch event). One plugin shapes each kind of launch at a time: the first to call this with a shape, until it calls it with nil or stops. It works in any session; other players see the launch as your skater makes it. The grind-exits mod picks the side of a pop out of a grind with it, from right and switch in reskate.skater.get().

Rider observations and requests

General building blocks for a control scheme written in Luau, such as a dual-stick layout: how the game sees the rider’s stance, its named animation values, the rail it targets, and requests that go through the game’s own checks. With reskate.input.write and reskate.settings.hold_gameplay they cover what a controller layer needs. None of them gives a game address.

reskate.skater.frame()

The local rider’s frame and stance, as the game holds them.
table or nil
nil without a local skater, or when the game’s values do not agree with each other this tick.
These are the game’s own flags, not worked out from the body: mirrored and fakie do not say by themselves which foot is in front.
Needs the skater.read permission.

reskate.skater.flip_state()

Whether the local skater’s flip is an underflip, as the game’s own trainer reads it: a snapshot of this moment, read-only. These flags need not be among the values animation_values lists.
table or nil
nil when there is no local skater, or the flip state cannot be read (a respawn or a change of rider during the read gives nil too). Otherwise:
Needs the skater.read permission. It is a read of one moment, not an event: a plugin that reads it now and then can miss a flip between two reads. The flags alone do not tell every named variant apart.

reskate.skater.animation_values()

The local rider’s named animation values: the inputs the game’s animation reads and the outputs its physics writes, whose names start with "Animation/Dingo/".
table
Keyed by each value’s full name, such as "Animation/Dingo/Bool.Anim.DoingTrick". Empty without a local skater. Only values the rider holds now are listed; one that does not read as its kind is left out.
Needs the skater.read permission.

reskate.skater.set_animation_value(name, value)

Writes one of the rider’s physics outputs once, now. It is a request for this moment, not a value held: the game’s physics writes the output again on its own, so call it each time you want it.
string
required
The value’s full name, 1 to 120 characters. Only a number output whose name starts with "Animation/Dingo/Float.Physics." can be written: never an input, a boolean, a choice or another rider’s value.
number
required
Finite, within a million either way.
boolean
True when the value was written.
string
When ok is false:
  • "gameplay input is unavailable": the game window does not have the focus, ReSkate’s menu is open, or the game holds gameplay input (see input.allowed).
  • "the host has turned boosts off", in a session whose host turned boosts off, or "not while a throwdown runs" (unless the game’s stock physics is on, as a game mode has it).
  • "the local skater is unavailable", "not a live numeric physics output", "the local skater changed", "the animation property changed" or "the animation property could not be written".
Needs the skater.animation permission. A name that is not 1 to 120 characters, or a value that is not a finite number within a million, raises an error. The value is looked up twice, before and after the rider is checked again, and is written only when both agree.

reskate.skater.rail_target()

The rail the game is targeting for the rider, as it approaches one in the air.
table or nil
nil without a local skater, or when the game’s target cannot be read.
Needs the skater.read permission.

reskate.skater.select_rail_target(class, negative)

Asks the game for one class of rail target the next time it picks a rail for the rider. The game’s own geometry and acceptance checks still run: it is a preference, not a forced grind.
number or nil
required
The game’s rail target class, an integer from 0 to 6. nil lets go of your request.
boolean
default:"false"
Which of the class’s two alignment signs to ask for: true for the negative one.
boolean
True when your request is held (or let go).
string
When ok is false:
  • "gameplay input is unavailable".
  • "the host has turned boosts off", or "not while a throwdown runs" (unless the game’s stock physics is on, as a game mode has it).
  • "<plugin> selects rail targets": another plugin’s request is live.
  • "rail candidate selection is unavailable": no local skater, or the game does not match what ReSkate expects.
Needs the skater.control permission. A request lasts 100 ms: call it every tick to keep it. One plugin holds it at a time. It applies only while the rider is in the air from an ordinary pop (physics state 201), the game is targeting a rail, and gameplay input is allowed; the game’s own request is put back after each pick. A class that is not an integer from 0 to 6, or a negative that is not a boolean, raises an error. Letting go always works. When the plugin stops, its request ends.

Hiding your skater

reskate.skater.hide(on)

Stops your own skater being drawn on your screen, or draws it again. Only your game changes: other players still see you unless their own plugin hides you (reskate.session.hide). Your skater still skates, collides and can be hit as before. A prop hunt hides a hider’s skater on their own screen, so they see only the prop they wear.
boolean
default:"true"
True (or nothing) hides your skater; false draws it again.
boolean
True when it was done.
string
"hiding the skater is unavailable for this game build".
Needs the skater.control permission. Your skater stays hidden while any plugin hides it, and your plugin’s hide goes when it stops. While it is hidden, the x-ray (reskate.skater.xray) has no picture of the skater.

X-ray

reskate.skater.xray(on)

Keeps the local skater’s x-ray ready for d:skeleton, which draws the game’s own skeleton through the skater. The x-ray is ready while any plugin asks for it. The first time, the skeleton is read in the background, so d:skeleton draws nothing for a moment.
boolean
required
True to keep it ready, false (or nothing) to stop asking.
boolean
True when the ask was taken.
string
"the x-ray is unavailable for this game build" when ok is false.
Needs the overlay permission. While the x-ray is ready ReSkate follows the skater’s rendering every frame, so ask only while you may draw it. When the plugin stops, its ask is dropped.

Bone Cam

The Bone Cam is ReSkate’s X-ray view of a bail. When the local skater wipes out, the screen goes X-ray for about 4 seconds: every bone is drawn between the skater’s joints, a hard hit cracks or breaks the bone beside it, and the injuries are listed. The player chooses when it shows, and the choice is kept between launches:
  • "game" (the default): while a plugin’s game asks for it.
  • "on": on every bail.
  • "off": never.
ReSkate does not watch for bails for the Bone Cam itself. Your plugin says when the skater bailed, with "bail".

reskate.skater.bone_cam(...)

Reads or drives the Bone Cam, by the words you pass.
string
Up to 8 words; more are ignored. Each is cut to 32 characters.
A word that is not a string or a number raises an error.
"game", "on" and "off" alone set the player’s own choice, and it is saved. To ask for the Bone Cam from your game, pass "game", "on". Leave the console words to a command the player types.
Needs the camera permission. While a plugin asks with "game", "on", the skater’s slams and strikes are followed for reskate.skater.telemetry even when the player turned the Bone Cam off. When the plugin stops, its ask is dropped.

Score

reskate.score.current()

The score HUD as it is now: the line’s score, its multiplier and the trick going on. The trick_started, trick_landed and line_broken events tell you when these change (see events).
table or nil
nil while the game shows no score HUD.
Needs the events.tricks permission.

Tricks

reskate.tricks reads skate.’s own trick list, as its score HUD writes it, and the stick flick behind each flip trick. It also changes what the trick ticker shows, and what a trick is recorded as.

reskate.tricks.feed(on)

Turns the trick feed on or off. While it is on, what skate.’s score HUD writes to its trick list (each trick’s name, side, landing, spins, stance and modifiers) comes to your plugin as the trick_notes event, once a tick.
boolean
required
True to turn the feed on, false (or nothing) to stop asking.
Returns nothing.
Needs the events.tricks permission. The feed is on while any plugin asks for it, and every plugin with events.tricks and a trick_notes handler hears it. At most 256 notes wait between two ticks; more are dropped. When the plugin stops, its ask is dropped.
The game’s music writes the title of the song playing to the same field as a trick’s name. ReSkate keeps the titles of the songs the game has begun (its own soundtrack, and the station a music source shows), and a name that reads as one of them, alone or as “artist - title”, is left out. Every other name comes through as the HUD writes it, plain flips included.

reskate.tricks.gesture(name)

The stick flick of a flip trick, as skate. reads it: the path the stick takes, for drawing the trick’s diagram.
string
required
The trick as skate. names it: "Kickflip", "Nollie Heelflip", "FS 360 Pop Shove-it". Case, spaces and punctuation do not matter, and a leading "Fakie" or "Switch" is left out. At most 96 characters are read.
table
A list of points, each a list {x, y}: x is to the left, y is the stick pulled back, and the stick’s gate is the unit circle. The path is for a regular stance: mirror x for goofy. Empty for a trick with no flick (grabs, grinds, manuals), for a name skate. does not know, and until the gestures are read.
Needs the events.tricks permission (the example also needs overlay, and skater.read for goofy). The gestures are read from the installed game in the background, the first time any call asks. Nothing of the game’s is shipped.

reskate.tricks.label(from, to)

Changes what skate.’s trick ticker shows of the local skater’s tricks: where the game’s label is exactly from, the ticker shows to. Only the ticker’s own text changes, in the ticker’s own buffer and only when it has room for to: the game’s string database, other text and other players’ tickers stay the game’s.
string
required
The game’s label, exactly as the ticker shows it, such as "Board Stall". 1 to 63 characters.
string or nil
required
What to show in its place, 1 to 63 characters. nil gives that label back to the game.
boolean
True when the label is set (or given back).
string
Why not: "a plugin has at most 16 labels", or "trick labels are unavailable for this game build".
A label that is empty or longer than 63 characters raises an error. A label the ticker shows longer than 63 characters never matches.
Needs the hud permission. Each plugin has up to 16 labels; when two plugins label the same text, one of theirs shows. When the plugin stops, its labels are given back.

reskate.tricks.record_as(from, to, within_ms)

Records the next trick the game records whose id is one of from as the trick to instead, if it comes within within_ms of the call. The game’s trick recorder gets a changed copy of the trick; the game’s own is never written. What scores, the trick list and the trick’s history then see is the trick to.
table or integer
required
The game’s trick ids to replace: a list of 1 to 16, or one. Each is a whole number, 0 to 336.
integer
required
The trick id to record instead, 0 to 336.
number
required
How long the ask waits for that trick, 1 to 2000 ms. Past that it is dropped.
boolean
True when the ask is waiting.
string
Why not: "not while a throwdown runs", or "trick records are unavailable for this game build".
Trick ids are the game’s own numbers in its trick catalogue. Among them: 9 is a Board Stall (bs_board), 12 a Lip Stall (bs_lip) and 187 a rock to fakie (fakie_rock).
An id that is not a whole number from 0 to 336, an empty list or one of more than 16, or a within_ms out of range raises an error.
Needs the skater.control permission. Each plugin has one ask waiting at a time: a new one replaces it. It is used once, by the first trick that matches. Refused while a throwdown runs, as trick replacements are. When the plugin stops, its ask is dropped. A recorded trick is your game’s: whether a multiplayer host sees it the same has not been checked.

Trainer

A plugin has one save point of its own, kept in memory: it is gone when the plugin reloads. It is separate from the player’s own trainer save points.

reskate.trainer.set_point()

Saves where the skater is and the way it faces.
boolean
True when the point was saved.
string
"there is no skater" when ok is false.
Needs the trainer permission.

reskate.trainer.back()

Teleports the skater to the plugin’s save point, facing the way it faced there.
boolean
True when the teleport was sent.
string
Why not: "no save point is set", "asked more than twice in a second", "the host has turned teleporting off" or "teleporting is unavailable now".
Needs the trainer permission (not skater.teleport). At most 2 teleports a second, counted together with reskate.skater.teleport.

HUD

reskate.hud.hide(hidden)

Hides the game’s whole HUD, as the hideui console command does. The HUD stays hidden while any plugin asks, and comes back when the last one stops asking. If the player had hidden the HUD already, it stays as the player left it.
boolean
required
True to hide the HUD, false (or nothing) to stop asking.
Returns nothing.
Needs the hud permission. When the plugin stops, its ask is dropped.

reskate.hud.score_line(line)

Shows your plugin’s own line in skate.’s score HUD in the bottom left, drawn by skate.’s own widget: trick names, the action’s points, the multiplier ring and what the line has banked. It is display only. What it shows never counts towards the game’s score, challenges, XP or progression, and reskate.score.current and the trick events never report it.
table or nil
required
nil clears your line at once. A table shows it, with only these keys:
boolean
True when your line is showing (or, with nil, cleared).
string
When ok is false: another plugin’s line is up; a multiplayer session; a throwdown or match; a challenge or activity; the replay editor or a menu is open; skate.’s own line is showing; the corner is hidden by hud.corner; or skate.’s score HUD is not loaded.
Set the line again at least every 500 ms (once a tick is the usual way): a line not set for 500 ms goes. It also goes when your plugin stops. When skate. starts a line of its own, yours steps aside, and comes back 0.5 s after the game’s line goes idle. A line that opens after a closed one, or after none, starts its rows again, so a repeated name comes in anew.
Needs the hud.score permission (hud alone is not enough). Only one plugin’s line shows at a time. A key other than these six, a value of the wrong type or out of its range raises an error.

reskate.hud.corner(hidden)

Hides skate.’s HUD in the bottom left corner, for a plugin that shows something of its own there: the d-pad menu, and the score HUD while a line goes on. The rest of the HUD stays. The corner stays hidden while any plugin asks, and comes back when the last one stops asking.
boolean
required
True to hide the corner. False (or nothing) shows it again, and keeps your plugin ready to hide it: a later true hides it at once.
boolean
True.
Needs the hud permission. When the plugin stops, its ask is dropped and the corner is the game’s again.