I’m sorta slumped on this, and I can’t figure this out.
I’m working on control points in my gamemode. In most control point based FPSs, when the same amount of players from each team enters a control point, it becomes neutral.
However, I can’t figure out how to tell the system how to compare the two in the box.
Any help would be appreciated!
EXAMPLE: for k, v in pairs(ents.FindInBox( Vector(-195.968750, -48.005539, 120.031250), Vector(219.968750, -399.968750, 256.031250) ) ) do Cscoresmooth = math.Approach(Cscoresmooth, Cscore, FrameTime()) if v:IsPlayer() and v:Team() == 1 and Ccaptured == false then... --preform action for one team here elseif v:IsPlayer() and v:Team() == 0 and Ccaptured == false then... --preform action for other team here