Skip to content

Pickups within interiors are broken in r20926 #2309

Closed
@Dutchman101

Description

@Dutchman101

Describe the bug
In build r20922 and later, pickups created inside of interiors are bugged as a result of this change: d3ef49a (PR #2305)

The pickup won't show (or work) within the interior, even after setting the pickup element to said interior properly.

To reproduce

Reproduction:

  1. Run the following script on local server:
function pickupTest()
	local intPickup= createPickup(374.88861, -8.36938, 1001.85156, 3, 1318)
	local outsidePickup = createPickup(916.64050, -1353.23145, 13.20113, 3, 1318)

	setElementInterior(intPickup, 9)
end
addEventHandler("onResourceStart", resourceRoot, pickupTest)
  1. Go to the relevant interior (in reproduction script: Cluckin' Bell, interior 9 and dimension 0) which is easy to do with a local server's "freeroam" > F1 > int menu, and observe pickup not being there.
  2. Go to the relevant outside interior (coordinates from outsidePickup) to observe pickup there working properly.
  3. Compare between builds and identify it started with r20926

Version
Client r20926

Additional context
The breaking change will be quickly reverted, to unbreak build and take bugged builds out of roulation as soon we can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions