Forum rules - please read before posting.

How do you retrieve the hotspot label of the hotspot you are interacting with?

edited August 2016 in Technical Q&A
Hi Guys,

How do I get the label of a hotspot that I've just clicked on?

AC.KickStarter.playerInteraction.GetActiveHotspot() seems to return the highlighted hotspot, but once clicked (IE the interaction menu is up) this returns null.

AC.KickStarter.playerInteraction.GetLastOrActiveHotspot() would work except in cases where a triggered action (like a character move with hotspot detector) inadvertently highlights another hotspot prior to opening the interaction menu (in which case this becomes the last highlighted hotspot).

I just want the string of the thing I'm currently interacting with. Apologies if I've missed something obvious!!

Thanks,
Sebastian

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.