Added sandbarrel to hacienda and tested explosion creation near the barrel

This commit is contained in:
Sachith Hasaranga Seneviratne
2014-08-02 08:39:22 +05:30
parent 8c2f0f1e14
commit 30bd018738

View File

@@ -1,10 +1,17 @@
void onKartObjectCollision()
{
if (getCollidingID()=="stklib_fitchBarrelTestDestroyed_a"){
int kart_id = getCollidingKart1();
Vec3 location = getKartLocation(kart_id);
createExplosion(location);
}
else {
displayMessage("Woot! You hit item of ID: " + getCollidingID());
disableAnimation(getCollidingID());
Vec3 explosion_loc = Vec3(79.53,0.07,97.13);
createExplosion(explosion_loc);
disableAnimation("stklib_fitchBarreltest_a_main.b3d");
}
}
void onItemObjectCollision()