MapEditor icon indicating copy to clipboard operation
MapEditor copied to clipboard

Entity data confusion

Open Powback opened this issue 5 years ago • 4 comments

parentRepresentative: DataContainer field in EntityCreationParams

Powback avatar Oct 20 '20 00:10 Powback

Caused by entities that are created being spawned from the same parentrepresentative, making them share data which shouldn't be unique.

To fix: Implement parentRepresentative field in EntityCreationParams, should reference a unique referenceobjectdata.

Powback avatar Feb 01 '21 17:02 Powback

https://powback.com/u/1dc5029c4a2ddfe11e093887b4ab7dc3.mp4

Powback avatar Feb 02 '21 00:02 Powback

Needs to be added here: https://github.com/BF3RM/MapEditor/blob/640b1f2d89f3b97426066094bcfb3196b9a98afa/ext/Shared/Modules/GameObjectManager.lua#L65

FlashHit avatar Jan 31 '22 04:01 FlashHit

Note: when creating a custom ReferenceObjectData you need to define the .blueprint as well in there and then you also need to store the ReferenceObjectData so it doesn't get garbage collected.

FlashHit avatar Mar 10 '22 11:03 FlashHit