Im creating a Shop for my game where you can buy perks, does anybody have any idea how to create my player(robot) invisible from Ai’s for say 30seconds, then let them see him again, but make sure u can still see the player.
I’m not sure how your AI works, but you can just set a simple boolean when you open the shop. (shopping = true)
Then in your AI method somewhere before it decides who the player is:
if (shopping) return;
If the player is shopping it will not continue with the method and therefore make enemies not ‘see’ you.
edit: Then to allow them to see you again, just set shopping to false. (For example when closing the shop)
i think you mis understood me i meant:
if i was to click by Invisibility and go ingame, i would be invisible to the mosnters for 30seconds.
The answer depends on how your AI works. How do the AI agents in your game ‘see’ the player in general? Have you implemented that part yet?