How to define marker as area?

Hey guys,

I’m kind of new to Lua, but want to create my first script.
Actually what I did so far was creating a marker using the DrawMarker function.
Now I want to make a bool go true when I enter the marker.
How do I get it done, that the game notices that someone is inside the marker?

Thank you for your help!

You can use Vdist() and check if the distance between the player and marker is 1.2 for example (or bigger distance if marker is bigger)

1 Like

Or you can use this resource that helps create markers :wink:

don’t

just use the built-in length operator on vectors

it’s a lot faster

1 Like