Artillery does not fire when commandArtilleryFire command is called if it sits on too close to target. inRangeOfArtillery seems to always return true for the position even if it's too close. {F28034}
Description
Description
Details
Details
- Legacy ID
- 3811760370
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Aiming / Shooting
Steps To Reproduce
attached mission zip
Additional Information
I found the problem. the artillery is too close to target in order to fire. But why inRangeOfArtillery always returns true?
Does it only check max distance but not minium distance?
Event Timeline
Comment Actions
I think the bug lies in inRangeOfArtillery because it returns true even when artillery cannot fire because of being too close to the target.
if you put the artillery really close to target (less than 100 meters) then inRangeOfArtillery will return false.
Put this in init.sqf for testing:
player sidechat format["inrange: %1", getMarkerPos "target" inRangeOfArtillery [[_artillery], "32Rnd_155mm_Mo_shells"] ];