G’day all,
I’m mucking about with world partition and data layers, and have come across an issue that for the life of me I cannot get my head around.
My player character has an inventory, and can pick up and drop items. These items save and re-load if you load a saved game, and place them in the world where they were dropped.
My issue comes with data layers for interiors of buildings. If the player drops an item, and then leaves the location, the dropped items fall through now deactivated data layer.
Is there a way to detect what data layer an actor/mesh is in at run time? Through a line trace or something perhaps when the item is dropped, so it can check what it lands on and then find out what data layer it is a part of, then add the item to that data layer?
Any help is super appreciated!