Set the active ped group upon reaching a stage.
Scope
This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.
Syntax
SetStagePedGroup( group_index );Game.SetStagePedGroup( group_index )- group_index: The index of the ped group to switch to.
Examples
AddStage();
// Switch to ped group 2 when reaching this stage.
SetStagePedGroup(2);
AddObjective("dummy");
CloseObjective();
CloseStage();Game.AddStage()
-- Switch to ped group 2 when reaching this stage.
Game.SetStagePedGroup(2)
Game.AddObjective("dummy")
Game.CloseObjective()
Game.CloseStage()Notes
This will persist until the player enters a Trigger Volume (0x3000006) inside a PedGroup Locator, a subsequent stage calls the command again or the player mission selects to a mission that calls UsePedGroup.