Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - alternati

Pages: [1]
1
Community bulletin board / Re: WME BOOK is online
« on: July 20, 2008, 10:53:43 PM »
Hi, I'm starting to read the book. I think I found a small error in the last script (exit.script) in Chapter 3.

#include "scripts\base.inc"
 
on "ActorEntry"
{
   var door = Scene.GetNode("Door");
   Game.Interactive = false;
   global doorClicked;
   if (doorClicked)
   {
      actor.Talk("I don't want to return to my flat before I am sure I can't enter the warehouse!");
   }   
   else
   {
      Scene.DetachScript("scenes\warehouse\scr\bomb.script");
      actor.Talk("Phew. That was close");
      Game.ChangeScene("scenes\room\room.scene");
   }
   Game.Interactive = true;
}


Line in red must be: if (!doorClicked)

Am I right? Greetings !!!

Pages: [1]

Page created in 0.023 seconds with 21 queries.