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: Urgent question : actor in region  (Read 3316 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Urgent question : actor in region
« on: February 10, 2009, 02:45:58 PM »

Hi!

Sorry, but I have an urgent question..

How can I see which actor is in a region? I´ve got two 3D actors, one named "actor" and the other "dog". Now I´ve set up a trigger zone with the "ActorEntry" event, but I only want the dog to trigger the event, not the main character called actor.

Thanks,
Oli
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Urgent question : actor in region
« Reply #1 on: February 10, 2009, 03:27:50 PM »

You can't limit the ActorEntry to only some actors. You'd need to use something like Scene.GetRegionAt(actor.X, actor.Y); in the ActorEntry/ActorLeave handlers to check if it's the actor of your interest.
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: Urgent question : actor in region
« Reply #2 on: February 10, 2009, 04:55:29 PM »

Thank you very much!  :)
Logged
 

Page created in 0.033 seconds with 23 queries.