Refactored interaction key handling while boarded:

- Self-interaction key opens up your own self interaction menu
- Interaction key opens interaction options of the vehicle and passengers
This commit is contained in:
Nicolás Badano
2015-03-24 12:27:27 -03:00
parent 5e79970740
commit a1d6c052ba
9 changed files with 176 additions and 209 deletions

View File

@ -44,7 +44,7 @@ if((count _this) > 2) then {
};
// For non-self actions, exit if the action is too far away
if (GVAR(keyDown) &&
if (GVAR(openedMenuType) == 0 && vehicle ACE_player == ACE_player &&
{(ACE_player modelToWorld (ACE_player selectionPosition "pilot")) distance _pos >= _distance}) exitWith {false};
// Exit if the action is behind you