01053 Posted October 8, 2018 Share Posted October 8, 2018 I'm having a strange issue with the interact method for an object, basically I'm attempting to interact with a cooking range and occasionally an NPC is standing next to me and it's possible I click in a position where the NPC is the first click and it just gets stuck I thought it should right click if it's not the first option is it broken or something? ;o. Here's a gif to show what I mean, another issue I notice is the mouse position every time it 'attempts' to interact with cook stays the same I thought that maybe it would be good to have the position of the mouse change every attempt or something to help prevent this kind of issue. https://gyazo.com/096b1ab7f387f375df37457c9c2257d7 Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted October 8, 2018 Share Posted October 8, 2018 8 minutes ago, 01053 said: I'm having a strange issue with the interact method for an object, basically I'm attempting to interact with a cooking range and occasionally an NPC is standing next to me and it's possible I click in a position where the NPC is the first click and it just gets stuck I thought it should right click if it's not the first option is it broken or something? ;o. Here's a gif to show what I mean, another issue I notice is the mouse position every time it 'attempts' to interact with cook stays the same I thought that maybe it would be good to have the position of the mouse change every attempt or something to help prevent this kind of issue. https://gyazo.com/096b1ab7f387f375df37457c9c2257d7 Can you show me your code responsible for interacting with the range? Quote Link to comment Share on other sites More sharing options...
d0zza Posted October 8, 2018 Share Posted October 8, 2018 You can pass a string into .interact(), pass in "Cook" and it'll make sure it chooses this option. Quote Link to comment Share on other sites More sharing options...
01053 Posted October 8, 2018 Author Share Posted October 8, 2018 1 minute ago, d0zza said: You can pass a string into .interact(), pass in "Cook" and it'll make sure it chooses this option. Yeah thanks a lot, I didn't realise it worked like that thanks mate. Quote Link to comment Share on other sites More sharing options...