interaction problem

Started by randypana, Tue 30/07/2013 01:33:37

Previous topic - Next topic

randypana

hello as I can make this script for interactions: how to use an inventory object in an object in a room to make something happen that
I'm busy doing nothing ;)

Khris

-Select the object
-click the thunderbolt icon in the properties ( âš¡  )
-click on "use inv item on object", click the button that looks like this: [...]
-to check for the inv item, do:
Code: ags
function oTheObject_Useinv()
{
  if (player.ActiveInventory == iStick) {
    // iStick was used on oTheObject
    // ...
  }
  else player.Say("I can't do that.");
}


Also: asked and answered a hundred times.

SMF spam blocked by CleanTalk