[Bf-committers] GE object instances Id?

Carsten Wartmann cw at blenderbuch.de
Fri Mar 20 16:56:08 CET 2009


Natanael Olaiz schrieb:
> Hi,
> 
> I have a question about the Game Engine: there is a way to identify 
> between different objects of the same type?
> 
> I'm trying to use a script controller on YoFrankie!, that needs to 
> identify the different instances of characters (rig_ram / rig_sheep / 
> rig_rat /...), but all the instances give me the same name with 
> getOwner().name.

I think thats because these are added groups. I found that same problem 
during the design of my subracer for the gamekit.

I solved it by letting the objects register themselves at game start 
with a init script and choose a unique name for them.

Carsten

-- 
Carsten Wartmann: Autor - Dozent - 3D - Grafik
Homepage:         http://blenderbuch.de/
Das Blender-Buch: http://blenderbuch.de/redirect.html


More information about the Bf-committers mailing list