(SOLVED) Get properties of collision

#1

I have different types of bullets in my game. Some have better stats than others. When these bullets collide with any character, I need to be able to pull the bullet’s stats in the character’s collision response code.

Is there a straightforward way of doing this? I looked at the “sender” and “message.other_id” vars but they don’t lead me to the bullet’s #script component, so I can’t pull its properties.

Thanks.

0 Likes

Get url of tilemap
#2

If you have the id you can create a URL from it:

msg.url(nil, message.other_id, "script")
1 Like

#3

Thank you, that’s very helpful.

0 Likes