Adds an NPC to the world in an objective.
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
AddObjectiveNPCWaypoint( npc, locator );Game.AddObjectiveNPCWaypoint( npc, locator )- npc: The name of the NPC to add a waypoint to.
- locator: The name of the CarStart Locator to make them walk to.
Examples
MFK
Lua
AddObjective("dummy");
AddNPC("ned", "m2_ned_sd");
AddObjectiveNPCWaypoint("ned", "m2_ned_sd_walk1");
CloseObjective();Game.AddObjective("dummy")
Game.AddNPC("ned", "m2_ned_sd")
Game.AddObjectiveNPCWaypoint("ned", "m2_ned_sd_walk1")
Game.CloseObjective()