wyrt_respawn
v1.0.0Gameplay
Respawn system with configurable timers, spawn point selection, and team-based spawning
Features
- Configurable respawn timers per player or globally
- Multiple spawn point configurations
- Team-based spawn point assignment
- Random or sequential spawn selection
- Activity tracking on respawn
- Respawn callbacks and events
Quick Start
const respawnModule = context.getModule('wyrt_respawn');
const respawnManager = respawnModule.createRespawnManager('my_game', {
respawnTime: 5000, // 5 seconds
updateActivityOnRespawn: true
});
// Add spawn points
respawnManager.addSpawnPoint('team_a', { x: 100, y: 100 });
respawnManager.addSpawnPoint('team_b', { x: 900, y: 100 });
// Queue player for respawn
respawnManager.queueRespawn(playerId, 'team_a');Exports
RespawnManagerManages spawn points and respawn queues