playerParachuteEnded
Tells your gamemode that a player’s parachute descent ended: landed, cut, or cut short by death or leaving.
Renamed in 0.28 from parachuteEnded; see renamed names.
Signature
Section titled “Signature”server.on("playerParachuteEnded", ({ player, parachute, endReason }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
parachute |
Parachute |
The parachute, with phase: "inactive". |
endReason |
ParachuteEndReason |
"landed", "interrupted", "dead", "disconnected" or "timed-out". |
Example
Section titled “Example”import { server } from "nativemp";
const airborne = new Set<number>();server.on("playerParachuteOpened", ({ player }) => airborne.add(player.id));server.on("playerParachuteEnded", ({ player, endReason }) => { airborne.delete(player.id); server.log(`Player ${player.id} ended their descent: ${endReason}.`);});A landing sends playerParachuteLanded first. A parachute that never opened does not send this event.
Related
Section titled “Related”players.closeParachute: cut a parachuteplayerOpenParachuteRequest: decide whether it opensplayerParachuteLanded: the player landedParachute: the parachute’s fields