Added sandbarrel to hacienda and tested explosion creation near the barrel
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user