-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
base: master
Are you sure you want to change the base?
Conversation
Add example and description for entity parameter
```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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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 😊
Add description what the native does exactly