scene_add_respawn_point
Adds a respawn point to a level save so downed or fallen characters have a defined place to return, using coordinates, rotation, or an existing preset point.
Instructions
Add a respawn point (复苏点) in a copy of a save: where a character that went down comes back. The platform has the whole of dying and coming back built in: when a character's health reaches 0 its player gets the revive screen (wait, then 复苏) and the character returns at a respawn point of that player; a character that falls out of the world is put back at once and loses part of its health. Without a respawn point there is nowhere to come back to. Give position (and rotation; a preset point is made there) or point (the id or name of a preset point that exists). The point is added to the level settings and to the list of the player template. A graph makes points usable or not while the game runs, which is how checkpoints are made: f.activateRevivePoint(player, respawnId) for the one just reached, f.deactivateRevivePoint(player, respawnId) for the one before. Lives are f.setPlayerRemainingRevives(player, n); f.setPlayerReviveTime(player, seconds) sets the wait; f.reviveCharacter(character) revives at once; f.allowForbidPlayerToRevive(player, false) ends it; whenTheCharacterIsDown, whenCharacterRevives and whenAllPlayerSCharactersAreDown tell a graph what happened. The records are those of the official samples (角色设置, 基础运动), byte for byte; verified in play on 2026-10-13 (examples/hazards).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| point | No | ||
| mapPath | No | ||
| position | No | ||
| rotation | No | ||
| outputName | No |