skater.read:reskate.skater.get,position,heading,speed,on_ground,telemetry,movement,goofy,frame,flip_state,animation_valuesandrail_target;reskate.physics.tuningandfind.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_speedandselect_rail_target;reskate.physics.tune,competition,stock_readyandprepare.skater.animation:reskate.skater.reach,pose,carryandset_animation_value.overlay:reskate.skater.xray.camera:reskate.skater.bone_cam.events.tricks:reskate.score.current,reskate.tricks.feedandreskate.tricks.gesture.trainer:reskate.trainer.set_pointandback.hud:reskate.hud.hideandreskate.hud.corner.hud.score:reskate.hud.score_line.
reskate.world.raycast and the rest) see world; for its board, see board.
Positions and headings
A position is a Luauvector 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.
Needs the
skater.read permission.reskate.skater.position()
The skater’s position, or nil without a skater.
Needs the
skater.read permission.reskate.skater.heading()
The way the skater faces, or nil without a skater.
Needs the
skater.read permission.reskate.skater.speed()
The skater’s speed over the ground, or nil without a skater.
Needs the
skater.read permission.reskate.skater.on_ground()
Whether the skater is on the ground, or nil without a skater.
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).
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.
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.
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.
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.
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)".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.
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.
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.
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.
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.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.
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.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".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.
Needs the
skater.control permission.reskate.skater.push_reset()
Drops the push that is waiting, if there is one.
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.
"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.
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.
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.
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.
0.05 to 10 times the speed the flip would turn at. 1 (or nothing) ends your plugin’s factor at once.
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.
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.
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)
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.
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.
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.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)
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.
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.
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.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.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.
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.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 andpose, 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)
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.
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".The speeds, in metres per second, each set if given; at least one.
nil gives these launches back to the game.Why not:
"<plugin> shapes <from> launches" (another plugin does) or "launches are unavailable for this game build".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.
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. Withreskate.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.
nil without a local skater, or when the game’s values do not agree with each other this tick.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.
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/".
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.
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.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 (seeinput.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.
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.
The game’s rail target class, an integer from 0 to 6.
nil lets go of your request.Which of the class’s two alignment signs to ask for: true for the negative one.
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.
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.
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.
"bail".
reskate.skater.bone_cam(...)
Reads or drives the Bone Cam, by the words you pass.
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).
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.
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.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.
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.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.
The game’s label, exactly as the ticker shows it, such as
"Board Stall". 1 to 63 characters.What to show in its place, 1 to 63 characters.
nil gives that label back to the game.Why not:
"a plugin has at most 16 labels", or "trick labels are unavailable for this game build".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.
The game’s trick ids to replace: a list of 1 to 16, or one. Each is a whole number, 0 to 336.
Why not:
"not while a throwdown runs", or "trick records are unavailable for this game build".bs_board), 12 a Lip Stall (bs_lip) and 187 a rock to fakie (fakie_rock).
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.
Needs the
trainer permission.reskate.trainer.back()
Teleports the skater to the plugin’s save point, facing the way it faced there.
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.
True to hide the HUD, false (or nothing) to stop asking.
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.
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.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.
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.Needs the
hud permission. When the plugin stops, its ask is dropped and the corner is the game’s again.