Wintermute Engine > Not a bug

Entity inventory not saved then i live scene.

(1/2) > >>

cremen:
Is it right behavior?

for WME_DEMO

at OldGuy.script i added code:


--- Code: ---on "LeftClick"
{
  GoToObject();
  if( this.HasItem("Book") ){
this.DropItem("Book");
Game.TakeItem("Book");
  };
}

on "Book"
{
  GoToObject();
  Game.Interactive = false;
  Game.DropItem("Book");
  this.TakeItem("Book");
  Game.Interactive = true;
}
--- End code ---

and then i give this guy book (Lovely WME Tutorial, i think) and after go to street, and go back... his inventory empty... is it right? (hey, OldGay, give back my book!!!)

P.S. sorry for my pure English.

Mnemonic:
Old guy in WME demo is only loaded in a single scene. When you leave the scene, the entity is destroyed and reloaded later when you revisit the scene.

cremen:
i.e. at other hand, i must using actor and not entity for it?

metamorphium:
no. in other words you have to make the entity global and not attached to Scene.

cremen:
ok. thanks. i'll try it.

Navigation

[0] Message Index

[#] Next page

Go to full version