Yes and no. If I understand you right, you want to do something like, &quot;if object a is a sheep, do this&quot;. This you can&#39;t do, since Blender itself does not recognize this kind of OO thinking. All instances of game objects that are made from the same blender object, and yes, each pid will be different every time the game is run.<br>
<br>Now, to fix the issue. I believe YoFrankie! gives each object a property. Like, the sheep have a sheep property, or something like that. In Python, you can check to see if an object has the property your looking for. Following the sheep example:<br>
<br>own = GameLogic.getCurrentController().getOwner()<br><br>if hasattr(own, &quot;sheep&quot;):<br>    print &quot;I&#39;m a sheep!&quot;<br><br>I hope that helps.<br><br><div class="gmail_quote">On Thu, Mar 12, 2009 at 11:08 AM, Natanael Olaiz <span dir="ltr">&lt;<a href="mailto:nolaiz@gmail.com">nolaiz@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I have a question about the Game Engine: there is a way to identify<br>
between different objects of the same type?<br>
<br>
I&#39;m trying to use a script controller on YoFrankie!, that needs to<br>
identify the different instances of characters (rig_ram / rig_sheep /<br>
rig_rat /...), but all the instances give me the same name with<br>
getOwner().name.<br>
<br>
I just found the getPhysicsId() method, but varies every time I run the GE.<br>
<br>
There is a way to identify them?<br>
<br>
BTW, I don&#39;t know if this is the proper list to ask this question. If<br>
not, please tell me where I have to ask...<br>
<br>
<br>
Thanks in advance,<br>
Natanael.<br>
_______________________________________________<br>
Bf-committers mailing list<br>
<a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
</blockquote></div><br>