Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Right/Left double click on 3D actors  (Read 11685 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Right/Left double click on 3D actors
« on: January 31, 2009, 12:41:41 AM »

Hi!

I´ve noticed a possible bug.

The "RightDoubleClick" and "LeftDoubleClick" events don´t seem to work on 3D actors.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Right/Left double click on 3D actors
« Reply #1 on: January 31, 2009, 10:27:36 AM »

It does. It just isn't routed by the default scripts.
You'd need to add something like this to game.script:

Code: WME Script
  1. ////////////////////////////////////////////////////////////////////////////////
  2. on "LeftDoubleClick"
  3. {
  4.   var ActObj = Game.ActiveObject;
  5.   if(ActObj != null) ActObj.ApplyEvent("LeftDoubleClick");
  6. }
  7.  
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Right/Left double click on 3D actors
« Reply #2 on: February 05, 2009, 06:03:54 PM »

Hmm, well I added the code to the game.script, but I still can´t get the doubleclick to work on 3D actors. Otherwise the doubleclick works on "normal" region entities.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Right/Left double click on 3D actors
« Reply #3 on: February 05, 2009, 10:33:21 PM »

If you add the code to wme demo 3d, it definitely does work. Make sure your actor is interactive.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Right/Left double click on 3D actors
« Reply #4 on: February 06, 2009, 06:56:28 AM »

Well, that´s strange, because I´ve taken the WME 3D demo as a starting point. Anyway, I´ll have a look at the scripts again.

Thanks,
Oli
Logged
 

Page created in 0.04 seconds with 22 queries.