{"action":"created","issue":{"url":"https://api.github.com/repos/acemod/ACE3/issues/2301","labels_url":"https://api.github.com/repos/acemod/ACE3/issues/2301/labels{/name}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/2301/comments","events_url":"https://api.github.com/repos/acemod/ACE3/issues/2301/events","html_url":"https://github.com/acemod/ACE3/issues/2301","id":103722788,"number":2301,"title":"Opening Doors Isn't Possible in 3rd Person View","user":{"login":"654wak654","id":8149303,"avatar_url":"https://avatars.githubusercontent.com/u/8149303?v=3","gravatar_id":"","url":"https://api.github.com/users/654wak654","html_url":"https://github.com/654wak654","followers_url":"https://api.github.com/users/654wak654/followers","following_url":"https://api.github.com/users/654wak654/following{/other_user}","gists_url":"https://api.github.com/users/654wak654/gists{/gist_id}","starred_url":"https://api.github.com/users/654wak654/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/654wak654/subscriptions","organizations_url":"https://api.github.com/users/654wak654/orgs","repos_url":"https://api.github.com/users/654wak654/repos","events_url":"https://api.github.com/users/654wak654/events{/privacy}","received_events_url":"https://api.github.com/users/654wak654/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acemod/ACE3/labels/bug","name":"bug","color":"EB4E20"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-28T13:54:45Z","updated_at":"2015-08-28T14:01:39Z","closed_at":null,"body":"ACE3 Version: 3.2.1, Stable branch\r\n\r\n**Mods:**\r\n* @cba_a3\r\n* @ace3\r\n\r\n**Placed ACE3 Modules:**\r\n*No modules*\r\n\r\n**Description:**\r\nThe \"Open Door\" function isn't possible in 3rd person view.\r\n\r\nThink it's because [interaction_fnc_openDoor](https://github.com/acemod/ACE3/blob/master/addons/interaction/functions/fnc_openDoor.sqf) calls [interaction_fnc_getDoor](https://github.com/acemod/ACE3/blob/master/addons/interaction/functions/fnc_getDoor.sqf#L24) with a distance of 2 meters, which is then used to check the distance between the camera and the door, not the player object and the door. Since the 3rd person camera will be further then 2 meters away from the door (even when the player object is right beside it), the functions will decide the player is not close enough.\r\n\r\nMaybe instead of [interaction_fnc_openDoor line 21](https://github.com/acemod/ACE3/blob/master/addons/interaction/functions/fnc_openDoor.sqf#L21), [cameraView](https://community.bistudio.com/wiki/cameraView) could be used, it whould be 2 if internal and 2 + (distance between camera and player) for external.\r\n\r\n\r\n**Steps to reproduce:**\r\n* Find a door.\r\n* Open the door in 1st person.\r\n* Switch to 3rd person.\r\n* Try to open the door.\r\n\r\n**Where did the issue occur?**\r\n\"Multiplayer\", \"Singleplayer\""},"comment":{"url":"https://api.github.com/repos/acemod/ACE3/issues/comments/135782039","html_url":"https://github.com/acemod/ACE3/issues/2301#issuecomment-135782039","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/2301","id":135782039,"user":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T14:01:39Z","updated_at":"2015-08-28T14:01:39Z","body":":+1: for Bug + Fix"}}