Jump to content

[Suggestion] Cannon Volley Firing


Recommended Posts


As the name implies, make cannons shoot nearby loaded cannons!

Code below:
 
Spoiler

	--in components/boatcannon Shoot function       
       local cannons = TheSim:FindEntities(x, y, z, TUNING.WATERPLANT.ATTACK_AOE * 1.5, {"ammoloaded", "boatcannon"}, {"burnt"})

        for k,v in ipairs(cannons) do
            if v.components.boatcannon ~= nil then
                v:DoTaskInTime(math.random(), v.sg:GoToState("shoot"))
            end
        end

 

 

4 palm scales per cannon that's 28 scales to create that line which seems pretty pricey- Not to mention crafting the ammo for each one. Sure it looks cool, I'm just not sure what use this would be for at such a massive expense in a survival world.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...