mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1534f8cd8d
For small static weapons getInNearest would sometimes not detect the vehicle as the `getCameraViewDirection` may be pointing at the interaction node and not the vehicle
11 lines
280 B
Plaintext
11 lines
280 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
["ACE3 Movement", QGVAR(mount), [localize LSTRING(KeybindName), localize LSTRING(KeybindDescription)], "", {
|
|
if (!dialog) then {
|
|
[] call FUNC(getInNearest);
|
|
};
|
|
false
|
|
}] call CBA_fnc_addKeybind;
|