Author Topic: Detecting that an object has hit something?  (Read 283 times)

Is there a way of doing this?

I think it's ::onImpact or ::onCollision... I always forget. I tried to do a hack of it when Retail came out to prevent people from breaking Bedroom glass, but gave up fast.

lol. cool thank you

edit: this would be "projectile::onImpact" right?
« Last Edit: June 07, 2011, 09:23:40 PM by tyler0 »

If you want to use it for your own weapon projectile, "YourProjectileDatablock" being your datablock name:
YourProjectileDatablock::onCollision(%this,%obj,%col,%fade,%pos,%normal)

If you want to package it for when all projectiles collide with something use
Projectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)