I created a mod that makes several unique zone actors and I placed them into a map. Imagine three rooms in a row A>B>C, each with a unique zone actor in them. Say (RoomZone) RZA, RZB, RZC.
I need to know if there is a player in RZA and RZB but not RZC. I am almost there in using
Code: Select all
if((Self.ZonePlayerCount == 0) && (RZB.ZonePlayerCount == 0))in the code of RZA but the casting to RZB to check for players there fails. I know I could ForEach my way across this but is there a more elegant way?
Edit: I'm sorry guys, my brain decided to just stop working. I got it:
Code: Select all
local RZB RZB1;
if((Self.ZonePlayerCount == 0) && (RZB1.ZonePlayerCount == 0))