i want to access attributes of the objects, that sth. collided with.
so inside the "function on_message(self, message_id, message, sender)"
i try to handle it:
DEBUG:SCRIPT:
{
other_position = vmath.vector3(373.33435058594, 150.80889892578, 0.5),
other_id = hash: [/instance7],
group = hash: [default],
}
so far i can only access the other_id with an if statement like:
if message.other_id == hash ("/spaceship") then
the problem is, that objects spawned by factories have artifical names
/instance5
/instance7
and i dont know which TYPE of object it is.
so i like to access theses instances somehow.
/instance5.getmytype() (getmytype() would be a function)