DayZPhysics.RayCastBullet crash server with no crashlog if object in 4th parameter is inherited Apple, Plum or many of Edible_Base based classes (exclude TunCan, Pipsi etc)
Description
Description
Details
Details
- Severity
- Crash
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
I need to get the coordinate of the nearest surface or water from an object
for example - becouse GerGame().SurfaceY on DAMs always returns surface height under the DAMs, but i need to have surface height of road on DAMs
pos - position near player
Object object = GetGame().GreateObject("Apple", pos); PhxInteractionLayers collisionLayerMask = PhxInteractionLayers.ROADWAY|PhxInteractionLayers.TERRAIN|PhxInteractionLayers.WATERLAYER; Object hitObject; vector hitPosition, hitNormal; float hitFraction; vector pos = object.GetPosition(); float ground = GetGame().SurfaceY(pos[0], pos[2]); DayZPhysics.RayCastBullet(Vector(pos[0],pos[1] + 0.2,pos[2]), Vector(pos[0],ground - 1,pos[2]), collisionLayerMask, object, hitObject, hitPosition, hitNormal, hitFraction);
Server CRASH !!!
Additional Information
No crashes if object is Player, Vehicle or TestObject etc (no Edible_Base)