Object.allowShoot
Type: Boolean value
Default value: false
Overview

If specified true, then the object will be able to shoot. To change rate of fire use object.shootVelocity
Examples

Allow the enemy object to shoot
local newAI = require('classes.SimpleAI').newAI
-- enemy instance
local enemy = newAI({group = mainGroup, img = "snailWalk1.png", x = halfW-50, y = display.contentHeight-500, ai_type = "guard"}) 
enemy.allowShoot = true -- the object now will fire periodically