Hi,
I'm trying to find all the wooden external gates on my server:
I can't figure it out, how can I get this done?
Thank you.
I'm trying to find all the wooden external gates on my server:
foreach(var GateToRemove in GameObject.FindObjectsOfType<Door>())
{
GateToRemove.Kill();
}This doesn't work and doesn't seem to be right way as it would find every single Door and not only the gates.
I can't figure it out, how can I get this done?
Thank you.