Kinda new Lua coder here, help developing gamemode.
How would I designate an area, which would then be used to detect whether a certain entity ( in this case a weapon the player is holding ) entered the area? - Identical to the same method you might use to create a form of CTF mechanic.
I’m guessing an ( X, Y, Z ) area would be possible to create and define, and I know you could get pos of the player weapon entity and act whenever it is equal to another entity ( the capture point ), but that would be slightly ridiculous relying on them equaling exactly the same pos.
I just can’t find/know how I would do this. Any help? Any specific resources anyone could point me to?
Written code would be appreciate.