Need help with disabling interaction...

Started by , Wed 16/03/2005 19:15:47

Previous topic - Next topic

Samuel

in my game,  My character talks to an NPC and says somthing like I'm going to axe you,  my character changes his view to an axing animation,  runs a loop and then the npc changes his view to his dying animation.  this all works fine,  my problem is that you can still look and talk to the NPC after he has died.  I dont want to delete him after he dies,  is there some way I can disable interacting with him?

Ishmael

Just use some variables.

at the beginning of the room script:

int axed;

and in the interaction:

if (axed == 0) {
  // axing stuff goes here
  axed = 1;
} else {
  // after death axing stuff goes here
}
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.

Samuel

oh right.... oops.  I feel stupid now.  thanks for you're help!

SMF spam blocked by CleanTalk