Clears conversation animations registered to bonus missions to make room for new ones.
Scope
This command should be called in a level's initialisation script.
Syntax
MFK
Lua
ClearAmbientAnimations( bonus_mission_name );Game.ClearAmbientAnimations( bonus_mission_name )- bonus_mission_name: The name of the bonus mission for which ambient animations are being cleared.
- Valid arguments are
bm1,sr1,sr2, andsr3.
- Valid arguments are
Examples
MFK
Lua
AddNPCCharacterBonusMission("milhouse", "npd", "sr1_mhouse_sd", "sr1", "checkered", "intro", 0, "checkeredfinish");
SetBonusMissionDialoguePos("sr1", "sr1_player", "sr1_mhouse_sd", "level1_carstart");
ClearAmbientAnimations( "sr1"); // Clear any animations stored for SR1.
// Then register new animations.
AddAmbientNpcAnimation("dialogue_no", "sr1");
AddAmbientPcAnimation("dialogue_shaking_fist", "sr1");Game.AddNPCCharacterBonusMission("milhouse", "npd", "sr1_mhouse_sd", "sr1", "checkered", "intro", 0, "checkeredfinish")
Game.SetBonusMissionDialoguePos("sr1", "sr1_player", "sr1_mhouse_sd", "level1_carstart")
Game.ClearAmbientAnimations( "sr1") -- Clear any animations stored for SR1.
-- Then register new animations.
Game.AddAmbientNpcAnimation("dialogue_no", "sr1")
Game.AddAmbientPcAnimation("dialogue_shaking_fist", "sr1")