Hey guys.
I've a little problem with the Simple Lights.
I can power them all, but i cant power it in a radius where i stand.
Working:
Not working:
List list = new List();
Vis.Entities(player.transform.position, 10f, list);
foreach (var entry in list) {
entry.IOStateChanged(1, 1);
}
i tested the list for the objects, they're there, but i cant switch the status of them, very odd.
does somebody can tell me why this isnt working in a radius?
Any solutions?
Thank you!
I've a little problem with the Simple Lights.
I can power them all, but i cant power it in a radius where i stand.
Working:
foreach (var light in UnityEngine.Object.FindObjectsOfType()) {
light.IOStateChanged(1, 1);
}Not working:
List list = new List();
Vis.Entities(player.transform.position, 10f, list);
foreach (var entry in list) {
entry.IOStateChanged(1, 1);
}List list = new List();
Vis.Entities(player.transform.position, 10f, list);
foreach (var entry in list) {
entry.IOStateChanged(1, 1);
}
i tested the list for the objects, they're there, but i cant switch the status of them, very odd.
does somebody can tell me why this isnt working in a radius?
Any solutions?
Thank you!