16.07.2012, 12:07
Yep, I didnt consider any deaths in it. Youll probably need to restart the playback when the npc respawned, e.g. by calling OnNPCFinishPlayback manually.
Also heres an example code i just PMed someone, to fix the problems with NPCs not moving after spawn:
Also heres an example code i just PMed someone, to fix the problems with NPCs not moving after spawn:
pawn Code:
new pol;
public OnGameModeInit() {
SetTimer("ConnectAllNPCs", 5000, 0);
}
public ConnectAllNPCs() {
// Connect the NPC after the gamemode is loaded
pol = ConnectRNPC("Police");
// Add all waypoints or other NPCs...
SetTimer("StartAllRoutes", 500, 0);
}
public StartAllRoutes() {
StartRPOLRoute(pol);
// etc
}