May 10, 2024, 03:18:50 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Entity properties via script
« previous
next »
Pages: [
1
]
Print
Author
Topic: Entity properties via script (Read 2534 times)
0 Members and 1 Guest are viewing this topic.
Amo
Supporter
Regular poster
Karma: 0
Offline
Gender:
Posts: 206
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
www.sunrisethegame.com
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
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.
Amo
Supporter
Regular poster
Karma: 0
Offline
Gender:
Posts: 206
Re: Entity properties via script
«
Reply #2 on:
August 18, 2006, 11:15:25 AM »
Ok we try, thanks for the fast reply.
Logged
www.sunrisethegame.com
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Entity properties via script