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: Entity properties via script  (Read 2523 times)

0 Members and 1 Guest are viewing this topic.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Entity properties via script
« on: August 18, 2006, 11:01:47 AM »

Hi there. We marked several areas via scene edit as entity (entity type="entity(rgn)") and want to have there another cursor. That works fine via the properties tab in scene edit. But we want it via script, because under several circumstances the cursor have to be changed.
So our question, how can we read out the properties of an entity or entity area via script.
« Last Edit: August 18, 2006, 11:08:11 AM by Amo »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Entity properties via script
« Reply #1 on: August 18, 2006, 11:12:06 AM »

To query a scene entity use the following command:

var SomeEntity = Scene.GetNode("entity_name");

Once you have the entity reference, you can use all the methods and properties described in script language reerence.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Entity properties via script
« Reply #2 on: August 18, 2006, 11:15:25 AM »

Ok we try, thanks for the fast reply.
 

Page created in 0.018 seconds with 20 queries.