So I'm working on something at the moment and I'd like to make it so after some text pops up (AKA Fire the cannons) a few spawners will be triggered to fire a cannonball at the party much like if you had the ratling boss firing his cannon. How do I set it up so that I have a projectile that is a cannonball that I can have shot out of a spawner.
Code: Select all
defineObject{
name = "test_cannonball",
baseObject = "cannon_ball",
components = {
{
class = "Model",
model = "assets/models/items/cannon_ball.fbx",
},
{
class = "Projectile",
impactSound = "gun_shot_cannon",
spawnOffsetY = 1.35,
velocity = 10,
projectileRotationSpeed = 10,
projectileRotationZ = -30,
radius = 0.1,
},
},
}
xD this works as far as shooting a ball at the party but it doesn't deal damage, it also throws up an error after hitting the party.