if-script problem

Started by AndersM, Fri 22/10/2004 19:34:23

Previous topic - Next topic

AndersM

I think this should work, but it does not...

// script for object1: Interact object
if (CharacterView == 26) {
  ChangeCharacterView(28);
}
else {
  ChangeCharacterView(13);
}

Am I totaly lost, or am I on the right track?

Ashen

#1
Off the top of my head - you haven't said which character.
The usage is ChangeCharacterView (CHARID, int newview).

E.G.
Code: ags

if (character[EGO].view == 25) { // character view-1
  ChangeCharacterView(EGO, 28);
}
else {
  ChangeCharacterView (EGO, 13):
}
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk