Mouse back to Interact after using inventory item

Started by steptoe, Sat 21/04/2012 07:02:13

Previous topic - Next topic

steptoe

Hi

Once an inventory item has been USED on something the mouse changes back to walk mode. How do I get it to go back to Interact mode?

Normal Interact, say with Hotspots, are ok... It's just if player has used inventory.
cheers

I am having to use this after inv used, which I am sure may not be the correct way:

Code: ags

 mouse.Mode = eModeInteract;




Khris

When you say after having used it, do you actually mean after the player loses the inv item?
If yes:

Code: ags
function on_event (EventType event, int data) {

  if (event == eEventLoseInventory) mouse.Mode = eModeInteract;

}

steptoe

Hi Khris

Once I have used and lose ActiveInventory the cursor does not go back to Interact.

I am having to use this after inv used:

Code: ags

player.ActiveInventory=null;
mouse.Mode = eModeInteract;


I shall look at putting your function in.

cheers

steptoe


SMF spam blocked by CleanTalk