This forum is not active and is going to be locked at some point and eventually going offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Make sure to read the rules.

Two Areas That count the players in them

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
Captain JO
Meatbag
Posts: 7
Joined: Sat Nov 26, 2022 1:10 am

Two Areas That count the players in them

Post by Captain JO » Mon Oct 27, 2025 3:04 pm

Hello Guys!! I urgently need help with a Script for a map im working on! What I want is to have two areas that keep a count of the players in them by adding to a count everytime a player enters and subtracting the same count once a player leaves. then once a button is pressed the two areas will compare their relative counts and the area with the higher count will activate another trigger. I have no experience with the Scripting in SFD or any programming or coding in general so any help is apreciated!! If you can think of a way to do this without scripting it will be apreciated aswell!
Thank you in advance to anyone willing to help :mrgreen: !
0 x

Post Reply