• Running code if player leaves FindInSphere()?
    2 replies, posted
I'm trying to create a capture the hill gamemode as in you have to stand in a specified range of a entity to be able to capture the hill. The problem is that players can still walk out of the area after entering the area and the server still processes them as capturing the hill. How can I go by running some code on a player after he leaves the area?
My first thought is, maybe a table of players that are on the "hill". When one triggers the capture they're added to the table, but if they're too far from the hill's position it removes them from the table. Thing is, I don't know how you're already trying to do it. TheJjokerR above me surely knows a lot more than I do, and he's right. If you provide us with some code we can better help you.
Sorry, you need to Log In to post a reply to this thread.