Use inventory on hotspot problem

Started by td, Wed 23/08/2006 19:34:34

Previous topic - Next topic

td

Hey! I try to make interaction: If current inventory use on hotspot = current action
Here is my code:

  if (player.ActiveInventory == iLamp)
  Wait(140);
  player.ChangeRoom (49) ;     
 

I remember it was work before, but now if i use ANY inventory item player change room! Why???

Ashen

Braces. Try:
Code: ags

if (player.ActiveInventory == iLamp) {
  Wait(140);
  player.ChangeRoom (49);     
}


As it is, only Wait(140); is associated with the iLamp condition, the Change room should run with anything.
I know what you're thinking ... Don't think that.

td

Braces...so simple.

Thanks to "Ashen's hot line!" :)

SOLVED

SMF spam blocked by CleanTalk