View Single Post
04/15/14, 08:19 PM   #11
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
There are no node numbers. The node information you get from the interaction functions. But interactions are only tracked via an Update routine. There are no events currently at least that track interactions. A sample of my update routine that checks for interaction follows. But please note that I have noticed some flaws in the interaction results resulting in several checks before processing the information as valid.

Lua Code:
  1. local playerInteracting = IsPlayerInteractingWithObject()
  2.  
  3. local interactMode = GetInteractionType()
  4. if interactMode ~= INTERACTION_HARVEST then processingHarvest = false return end
  5. processingHarvest = true
  6.  
  7. local action, name, blocked, extra, context = GetGameCameraInteractableActionInfo()

For say a mine (Iron Ore) the action would be "Mine" and the name would be "Iron Ore".
For a tree limb ( Maple ) the action would be "Cut" and the name would be "Maple".
For most others it is "Collect" or "Gather".

Occasionally however, I have had the "Use" of a crafting station show up as INTERACTION_HARVEST instead of a more appropriate interaction.
  Reply With Quote