mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27808847db
- Replace the way of calculating 3D positions for subactions
30 lines
562 B
Plaintext
30 lines
562 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) = [];
|
|
true
|