Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Objectives > AddNPC

AddNPC

Adds an NPC to the world at the specified Type 3 Locator.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

AddNPC( npc, locator, [interior] );

Game.AddNPC( npc, locator, [interior] )

  • npc: The name of the NPC to add.
  • locator: The name of the Type 3 Locator to place the NPC on.
  • interior: The name of the interior the NPC is located inside.
    • Optional.

Examples

SelectMission("m2sd");
    ...
    
    AddStage();
        AddObjective("dummy");
            AddNPC("ned", "m2_ned_sd");
        CloseObjective();
    CloseStage();
CloseMission();

Game.SelectMission("m2sd")
    ...
    
    Game.AddStage()
        Game.AddObjective("dummy")
            Game.AddNPC("ned", "m2_ned_sd")
        Game.CloseObjective()
    Game.CloseStage()
Game.CloseMission()

Notes

No additional notes.

Donut Team © 2024 · v4.0