MFK Command: AddNPC
Adds a new character or moves the existing character to the specified locator upon reaching a specific stage in a mission.
This is intended to be used inside an Objective.
AddNPC( <character>, <locator>);
character: The name of the character to add, i.e "homer".
- Characters do not need to be explicitly loaded prior to the mission script being executed.
- locator: The name of the Locator Type 0 where you'd like the NPC to spawn, i.e "level1_homer_walkto".
Here's an example of this command being used to add
marge to a stage on a Locator named
m1_marge_sd. Note that this command must be called inside the stage's objective.
SelectMission("m1"); ... AddStage(); AddObjective("dummy"); // Add Marge as an NPC AddNPC("marge", "m1_marge_sd"); CloseObjective(); CloseStage(); CloseMission();