setRace beta
Function of @v12-engine/engine
ts
export declare function setRace(world: World, player: PlayerId, race: string): void;Makes a player play another race from now on: a campaign's mission, a game's own way of choosing. What they have stays theirs; what they may make is the new race's. Throws for a race the game does not have, or for the neutral players and the creeps