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:
parent
54128653ef
commit
17135760b4
1 changed files with 9 additions and 1 deletions
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue