Arma 3 Version: 1.80 (stable / rc / dev)
CBA Version: 3.5 (stable / dev + commit hash)
ACE3 Version: 3.12.1 (stable / dev + commit hash)
Mods:
- CBA_A3
- ace
Description:
ace_rearm not working on big vehicles due to small default values of
#define REARM_ACTION_DISTANCE 7
#define REARM_ACTION_DISTANCE_SQR 49
For example VTOL V-44. You can't get closer than ~8 and ~64.
Steps to reproduce:
Place empty V-44 gunship. Try to rearm.
Where did the issue occur?
Placed Modules:
when you want to have REARM_ACTION_DISTANCE at 8 then REARM_ACTION_DISTANCE_SQR must be the square of that...
@jokoho48 I got it. Symbol ~ means 'approximately'.
Let me just show.
https://i.imgur.com/9VLK0LV.jpg
Point not in actual numbers, but in that I can't reach them.
Should be changed to use the common functions that return distance based on vehicle size.
I'm personally a fan of sizeOf:
sizeOf typeOf _vehicle
Why it is not in 3.13.0?
Will look into swapping to ace_interaction_fnc_getInteractionDistance
Most helpful comment
Should be changed to use the common functions that return distance based on vehicle size.