1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-10 15:20:29 +01:00

Added commaned GetNumberOfVehiclesOnPath

This commit is contained in:
Rich Dunne 2021-07-07 07:27:53 -06:00
parent 54128653ef
commit 17135760b4

View file

@ -3,7 +3,6 @@ using Rage.Attributes;
using Rage.ConsoleCommands.AutoCompleters;
using System.Linq;
using System;
using System.Collections.Generic;
using SceneManager.Managers;
using SceneManager.Paths;
@ -67,5 +66,14 @@ namespace SceneManager.Utils
ped.Delete();
}
}
[ConsoleCommand("GetNumberOfVehiclesOnPath")]
internal static void Command_GetNumberOfVehiclesOnPath()
{
foreach(Path path in PathManager.Paths.Where(x => x != null))
{
Game.LogTrivial($"Path \"{path.Name}\" has {path.CollectedPeds.Count} collected peds.");
}
}
}
}