mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
85a77150c9
- Renamed the base menu "SelfActions" to "ACE_SelfActions" - Limit the amount of objects the player is shown interactions with. This are the 3 nearest objects which have active action points visible on screen. - Cull action points that are not visible, to far away, etc before checking if they are active.
31 lines
585 B
Plaintext
31 lines
585 B
Plaintext
/*
|
|
* Author: NouberNou
|
|
* Handle self action key up
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* true <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if (uiNamespace getVariable [QGVAR(cursorMenuOpened),false]) then {
|
|
closeDialog 0;
|
|
};
|
|
|
|
GVAR(keyDownSelfAction) = false;
|
|
if(GVAR(actionSelected)) then {
|
|
this = GVAR(selectedTarget);
|
|
_player = ACE_Player;
|
|
_target = GVAR(selectedTarget);
|
|
[GVAR(selectedTarget), ACE_player] call GVAR(selectedAction);
|
|
};
|
|
GVAR(expanded) = false;
|
|
GVAR(lastPath) = [];
|
|
GVAR(menuDepthPath) = [];
|
|
GVAR(vecLineMap) = [];
|
|
true
|