player.set_respawn_vehicle

This function was added to the Halo: The Master Chief Collection build of Halo: Reach in mid-July 2023, being backported from Halo 4's Megalo engine. Gametypes that use this function will likely fail to load on Xbox 360 builds of Halo: Reach (even when played via Xbox One backward compatibility).

This function allows you to set the respawn vehicle type for a player: when the player respawns, the game engine will automatically create a vehicle of this type and then force the player into one of its seats, preferring the driver's seat if accessible (and if compatible with the player's biped). In essence, this automates the task of using player.biped.place_at_me and player.force_into_vehicle in tandem.

Arguments

vehicle type

The vehicle type that this player should respawn in.

Example

for each player do
   current_player.set_respawn_vehicle(warthog)
end

Notes

See also