I have a scene that is creating objects with the Edit Object actuator.
It’s for an ATC type simulator, each object is a plane(flight), I need to keep track of it’s name, altitude, spd, heading.
I then want to be able to pick one of the objects (flights) with the mouse using a LMB/RMB/MMB, and assign / change properties to the indiviual object
I created the “seed” object and put it on a hidden layer, and created properties for it.
When I create objects in the game however, it seems that when I assign a new value to the property, all objects are getting the same values for the property, i.e I’m not getting instances created with the Edit Object actuator, but duplicates.
How do I create unique identifiable objects ?
Otherwise, I guess a crude way (the only way?) is to create as many unique objects as I think I’ll need and use separate Edit Object actuators for them? Ugly, but it will probably work.
Also, the only way I could figure out how to call a script when an object is picked, is to combine a Mouse(RMB) with a Mousover connected to an AND controller which triggers a message, then have a message sensor with the correspoinding message fire off the python script. Is that the only / cleanest way of calling a script when an object is picked with the mouse?
If I connect the MouseOver and Mouse(RMB) sensors to the python controller it gets called when either the MouseOver OR the RMB event occurs.