Skip to content

editor: edf element falls/teleport when intreacting with water #639

@q8X

Description

@q8X

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

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

  1. add race gamemode to definitions
  2. spawn race pickup
  3. grab it and place it in the water
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions