How to active mouse on my screen with 3d game


My game is a first-person game. I want to create a shop system where talking to an NPC opens the shop menu, enables the mouse cursor, and lets the player buy items, similar to simulator games
(this map is not real it just for test mouse cursor)

Hi - it looks like you’re using the 3d template which should have the mouse pointer lock extension and conditions and actions that turn it on and off.
You then need a scene variable for the game state. I usually use a number var but you could use a text and have ‘game runs’ or ‘shop’. Put all the logic for player movement and anything from the template that relates to mouse pointer lock under a variable game state equals “game runs” condition so that this logic is isolated from the shop logic. Then have all the logic relating to the shop system under (a sub event of) variable game state equals “shop” and include “exit pointer lock” here

thank you for suggestion i will try