-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
Which resource(s) have this problem?
edf
Describe the bug
the attached element is making the EDF elements fall and for some reason its a dynamic object which is causing this.
setting the position or freezing it doesn't help, but changing physical property solve this
mtasa-resources/[editor]/edf/edf.lua
Lines 440 to 462 in 7e86616
if glued then | |
dummyElement = createObject( | |
DUMMY_ID, | |
parentData.position[1], | |
parentData.position[2], | |
parentData.position[3], | |
parentData.rotation[1], | |
parentData.rotation[2], | |
parentData.rotation[3] | |
) | |
-- setObjectScale(dummyElement,0) | |
setElementDimension(dummyElement, parentData.dimension) | |
setElementAlpha(dummyElement, parentData.alpha) | |
setElementInterior(dummyElement, parentData.interior) | |
setElementParent(dummyElement, theElement) | |
setElementData(dummyElement, "edf:rep", true) | |
setElementData(dummyElement, "edf:dummy", true) | |
setElementData(theElement, "edf:handle", dummyElement) | |
table.insert(createdRepresentations[resource], dummyElement) | |
-- | |
triggerClientEvent ( "hideDummy", dummyElement ) | |
end |
i may make a PR to change the model to static object instead of current dynamic object
To Reproduce
- add race gamemode to definitions
- spawn race pickup
- grab it and place it in the water
- see element falling
another easy way to reproduce this is to make the player hit the race pickup using f6 mode
Expected behavior
elements shouldn't either fall or teleport when hitting it
Version
Multi Theft Auto v1.6-release-23196
Additional context
8mb.video-Epd-du6TvBpc.mp4
8mb.video-I8A-gy7XQ7an.mp4
Metadata
Metadata
Assignees
Labels
No labels