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

Author Topic: Current Scene  (Read 2726 times)

0 Members and 1 Guest are viewing this topic.

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Current Scene
« on: May 27, 2012, 01:30:43 PM »

Hi,

I need some script like this:
if (Game.CurrentScene == "street") {...}

WME doesn`t have method "currentScene". How do I solve this problem?
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Current Scene
« Reply #1 on: May 27, 2012, 01:41:56 PM »

You can use

Code: WME Script
  1. Scene.Name == "....."

It return the name of the current scene.
Logged

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Re: Current Scene
« Reply #2 on: May 27, 2012, 02:04:41 PM »

thanx :)
Logged
 

Page created in 0.046 seconds with 20 queries.