Page MenuHomeFeedback Tracker

The artillery cannot fire when placed in certain location
New, WishlistPublic

Description

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}

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

gc8 edited Steps To Reproduce. (Show Details)Feb 14 2016, 5:01 PM
gc8 edited Additional Information. (Show Details)
gc8 set Category to AI Aiming / Shooting.
gc8 set Reproducibility to Always.
gc8 set Severity to None.
gc8 set Resolution to Open.
gc8 set Legacy ID to 3811760370.May 8 2016, 1:44 PM
Bohemia added a subscriber: gc8.Feb 14 2016, 5:01 PM
gc8 added a comment.Feb 14 2016, 5:36 PM

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"] ];