Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Interacting with objects  (Read 2741 times)

0 Members and 1 Guest are viewing this topic.

esmeco

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
  • I'm NOT a llama!
    • View Profile
Interacting with objects
« on: February 16, 2003, 12:35:42 PM »

Hi! I'm new here and to wme, so don't blame me for asking dumb questions ;).
What I want to know is: How can I make an actor interact with an object, like for example picking up an object from the scene? How do I make that object ,like disappear from the scene once picked up?
Just one more question, I want to combine an object with another object, and then use it with an object from the scene, how do I do this? Should I make  the object from the scene an entity or else?
I really need your help 'cause I'm new to scripting

Thanx!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re:Interacting with objects
« Reply #1 on: February 17, 2003, 12:41:50 PM »

Hi! It's a very general question :) For the starters, I'd recommend reading through the docs (an updated version of the documentation is on the way, BTW) and studying the WME demo project source. It covers all the topics you are asking about (Molly can pick up the book and put it back on the desk). But briefly: yes, the the item that can be picked up is an entity, which is part of the scene. You can query the entity from a script, using:

Code: [Select]
var MyEntity = Scene.GetNode("entity name");

After the player picks the item up, you'll hide it from the scene by setting its Active property to false.

Code: [Select]
MyEntity.Active = false;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.227 seconds with 22 queries.