View Single Post
07/04/14, 05:28 PM   #9
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
Here it is: Harven's House Hunter

SkOODaT, unfortunately there is no such event, so I did some dirty hacking as usual in similar cases . When you press the interact button, a secure function is called: GameCameraInteractStart() - so you can't hook into it. But there is another function that is called before GameCameraInteractStart() - it is FISHING:StartInteraction(). That one can be hooked. Then i'm checking if it is a door - the only way is to check the first return value of GetGameCameraInteractableActionInfo(). It will be "Open" for doors. There are also some other checks done before the door is stored into saved variable but I will not go into details.
  Reply With Quote