| Blockland Forums > Modification Help |
| Detecting that an object has hit something? |
| (1/1) |
| tyler0:
Is there a way of doing this? |
| MegaScientifical:
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. |
| tyler0:
lol. cool thank you edit: this would be "projectile::onImpact" right? |
| Destiny/Zack0Wack0:
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) |
| Navigation |
| Message Index |