When using the DayZPlayerUtils.SceneGetEntitiesInBox function, the returned list of array<EntityAI> also contains items, which are not of type EntityAI. Calling methods like IncreaseLifetime() will cause an (E): Calling nonexistent function on class 'Object' Error
Description
Description
Details
Details
- Severity
- Crash
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
- Dig a GardenPlot
- Copy the Coordinates of the Garden Plot
- call DayZPlayerUtils.SceneGetEntitiesInBox with the coordinates and a small radius
- Iterate through all found items and try to call a method like IncreaseLifetime()
- The Exception will be thrown
Additional Information
For me, I added a small workaround, which checks again if the Item is really inherited by EntityAI, by tring to Cast it to EntityAI again