A high-level plugin framework for SCP: Secret Laboratory servers. It offers an event system for developers to hook in order to manipulate or change game code, or implement their own functions.
The list of lockers of Map does not contain all lockers
The Lockers property of Exiled.API.Features.Map does not contain all lockers!
indeed if you call this method UnityEngine.Object.FindObjectsOfType<Locker>() when the round is in lunched, you get more locker than the property.
To Reproduce
Steps to reproduce the behavior:
create a plugin with a method attached to RoundStarted Event.
Get the Lockers by UnityEngine.Object.FindObjectsOfType<Locker>();
Get the Lockers by Exiled.API.Features.Map.Lockers;
The attach method Server.RoundStarted
var lockerFindObjects = UnityEngine.Object.FindObjectsOfType<Locker>();
Log.Send("Lockers by UnityEngine.Object------------", Discord.LogLevel.Debug, ConsoleColor.Blue);
foreach (var locker in lockerFindObjects)
{
Log.Debug(locker);
}
Log.Debug("Lockers by Exiled------------------------", Discord.LogLevel.Debug, ConsoleColor.Blue);
foreach (var locker in Map.Lockers)
{
Log.Debug(locker);
}
Start the serveur with the plugin...
Start round...
See the log
Expected behavior
Same value in Lockers and the value of UnityEngine.Object.FindObjectsOfType<Locker>()
The list of lockers of Map does not contain all lockers The
Lockers
property ofExiled.API.Features.Map
does not contain all lockers! indeed if you call this methodUnityEngine.Object.FindObjectsOfType<Locker>()
when the round is in lunched, you get more locker than the property.To Reproduce Steps to reproduce the behavior:
UnityEngine.Object.FindObjectsOfType<Locker>();
Get the Lockers byExiled.API.Features.Map.Lockers;
Expected behavior Same value in
Lockers
and the value ofUnityEngine.Object.FindObjectsOfType<Locker>()
Server logs Log.txt
EXILED Version ("latest" is not a version): Exiled.Loader - Version 5.3.0
Results of
show plugins
command in console: