Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IsEntityAtCoord.md #1210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

niekschoemaker
Copy link
Contributor

Add description what the native does exactly

Add example and description for entity parameter
ENTITY/IsEntityAtCoord.md Outdated Show resolved Hide resolved
ENTITY/IsEntityAtCoord.md Outdated Show resolved Hide resolved
@AvarianKnight AvarianKnight added the needs validation This looks good, but needs additional confirmation of suggested change. label Oct 28, 2024
```lua
-- Simple demonstration which slides the ped along the x and y axis until the ped is outside the given area
local offset = 10
while IsEntityAtCoord(PlayerPedId(), coords.x, coords.y, coords.z, 20.0, 20.0, 20.0, false, false, 0) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this meant to be while not IsEntityAtCoord?

Copy link
Contributor

@colistro123 colistro123 Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By looking at the comment up above I think it's meant to slide the Ped within the X and Y axis until they're not within the bounding box anymore, so I believe the code would be correct. Notice how it offsets the coords down below confirming the premise above 😊

@AvarianKnight AvarianKnight added ready-to-merge and removed needs validation This looks good, but needs additional confirmation of suggested change. labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants