Topic: Collision test for getting object name

So, just wanted to know if there is script for getting object (name) where another object is colliding.
I know that there is these functions:
isCollisionTest(object)
isCollisionBetween(object1, object2)
getNumCollisions(object)

but these dont give object name where something (for example bullet, part of explosion) has collided,
I need object name from collision..

I do have few ideas how to go around this, but they are kind of. bad
1) rayhit
2) loop all objects (object tables)

Is there anyway around this than these two?
is there coming some script function for maratis on this one?

Edit: missed some text >.<

Last edited by pleedian (2013-06-06 08:32:53)

Re: Collision test for getting object name

Hi,

in lua you have to loop all objects yes,
or use rayHit :

point, object = rayHit(start, end)
name = getName(object)

We should add something better for that,
but you can do it in c++ with a plugin.