Change object picture?

Started by Rik_Vargard, Sun 28/03/2004 20:33:25

Previous topic - Next topic

Rik_Vargard

I want object 1 to change it's picture, but only when I use object 7 from my inventory on it. So in "Interact with object", I run this script, but it won't work!  :(


// script for object1: Interact object

if (character[GetPlayerCharacter()].activeinv ==7)
{
   SetObjectGraphic(1,34);}


Any comments? ???

Thx!!

Ishmael

You need to select the "Usen inventory on object" from the interaction editor, there put "Run script" and paste that code in it.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Rik_Vargard

THX, TK!  ;D

That was it, I was in the wrong place :) :) :)

SMF spam blocked by CleanTalk