Hi,
When I left click on a hotspot, I open a menu with look / use / talk / take
I've made a script because I wanted that a right click make the 'look' action by default
public class RightClickExamine : MonoBehaviour
{
void Update()
{
if (KickStarter.playerInteraction.GetActiveHotspot() != null && !KickStarter.playerMenus.IsInteractionMenuOn() && Input.GetMouseButtonDown(1))
{
if (KickStarter.runtimeInventory.SelectedItem == null)
{
KickStarter.playerInteraction.GetActiveHotspot().RunUseInteraction(2);
}
}
}
}
It almost works but whenever I right click on an hotspot, the first dialogue defined in the 'look' actionlist is always skipped.
I don't have the problem when I unselect "Subtitles can be skipped" in the speech manager.
Any idea on how I could solve this ?
Thanks
Unity 2018.4.20f1 - AC v1.70.4
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Replace Input.GetMouseButtonDown with AC's equivalent:
Thanks Chris it works