mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Server side markers with size < 1.5 don't trigger event

Open FileEX opened this issue 6 years ago • 6 comments

Describe the bug Only server side markers with size less 1.5 don't trigger events like onMarkerHit and onMarkerLeave, ~~trigger this evetns only one time after create marker and without diffrence if any element is in marker or no, "hitElement" is strange userdata.~~ When element enter or leave from marker, event isn't triggered.

To reproduce

local m = createMarker(0,0,3,'cylinder',1.0,255,0,255,255);

addEventHandler('onMarkerHit', m, function(he,md)
     print('hit', he,md);
end);

addEventHandler('onMarkerLeave', m, function(he,md)
    print('leave', he, md);
end);

Expected behaviour Fix server side marker events with size < 1.5

Screenshots image image image

(Z axis does not matter in this case)

Version 1.5.6

Additional context

FileEX avatar May 09 '19 17:05 FileEX

Just encountered this issue myself. Is this a new bug or has it been there all along?

moon91210 avatar May 13 '19 00:05 moon91210

Just encountered this issue myself. Is this a new bug or has it been there all along?

Sounds new, never experienced it before.

PlatinMTA avatar May 13 '19 00:05 PlatinMTA

I think this bug is new, because i don't remember that i experienced it.

FileEX avatar May 13 '19 01:05 FileEX

What is the exact server version?

ccw808 avatar May 13 '19 07:05 ccw808

v1.5.6-release-16588

moon91210 avatar May 13 '19 11:05 moon91210

Can confirm, issue still persists. Server-side isElementWithinMarker and getElementsWithinColShape don't return correct values as well when it comes to markers < 1.5 in size. I did a little research and it seems the collision of markers are below the markers themselves. image

slashwarm avatar Jul 25 '22 23:07 slashwarm