player.set_vehicle_spawning_enabled

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 was intended to let you control whether players spawn in a vehicle or not; it would allow you to set a spawn vehicle via set_respawn_vehicle, without having to set the spawn vehicle type to none in order to disable vehicle spawning.

In tests, this function doesn't actually do anything. Disassembly of haloreach.dll shows that it is, as of this writing, a no-op: it contains no code and has no effect.

Arguments

enable

Control whether this player spawns in a vehicle (true) or not (false).

Example

for each player do
   current_player.set_respawn_vehicle(warthog)
   current_player.set_vehicle_spawning_enabled(false)
end

See also