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: CHANGED TITLE: How to delete entity from another entity ?  (Read 3270 times)

0 Members and 1 Guest are viewing this topic.

PeterSVK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
    • View Profile
CHANGED TITLE: How to delete entity from another entity ?
« on: October 21, 2009, 06:39:17 PM »

Hi ::wave , just a fast question.
I have some entities wich i dont want to scale in any way, but if i have set in scene.edit that green lines i dont know how to stop it... i was looking in documentation but i wasnt able to find correct command ot correct syntax.So anyone know how to stop entity scaling from green lines in scene.editor(every scene has different scale lines) ? thx 

SECOND QUESTION(How to delete entity from another entity ? ) - please scroll down, THX
« Last Edit: October 22, 2009, 05:34:09 PM by PeterSVK »
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: How to stop Entity Scaling ?
« Reply #1 on: October 21, 2009, 07:06:16 PM »

Have you tried the entity's attribute "Scalable"?
Logged

PeterSVK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
    • View Profile
Re: How to stop Entity Scaling ?
« Reply #2 on: October 21, 2009, 08:26:44 PM »

oh.. i absolutly forgot :P THX very much  :P
Logged

PeterSVK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
    • View Profile
Re: CHANGED TITLE: How to delete entity from another entity ?
« Reply #3 on: October 22, 2009, 05:33:40 PM »

SECOND QUESTION:

Hi, i need do Delete entity ONE from entity TWO... for now i was using just Scene.DeleteEntity(this);, but now i need to delete entity TWO not entity ONE, so, in Entity ONE is this script :
Code: [Select]
on "LeftClick" {
Scene.DeleteEntity("TWO");
}

but this is not working, can u pls tell me how do i delete entity TWO from entity ONE script ? thx  :(
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: CHANGED TITLE: How to delete entity from another entity ?
« Reply #4 on: October 22, 2009, 06:19:14 PM »

First you should put the entity reference into a variable, something like that should work:

Code: WME Script
  1. var TWO_Ref = Scene.GetNode("TWO");
  2.  
  3.  
  4. on "LeftClick" {
  5. }
Logged

PeterSVK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
    • View Profile
Re: CHANGED TITLE: How to delete entity from another entity ?
« Reply #5 on: October 22, 2009, 07:26:39 PM »

it's working ! Thank you very much !
Logged
 

Page created in 0.066 seconds with 22 queries.