Object:customActionOnAiFireToObjects(event)
Type: Function
Overview

Describes the custom behavior on bullet collision with objects. The property object.allowShoot should be set to true.
Examples

Add custom functionality on bullet collision with objects
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 = "patrol"})
enemy.allowShoot = true -- the object now will fire periodically 
-- add custom functionality on bullet сollision with objects 
function enemy:customActionOnAiFireToObjects(event)
 print("I shot you " .. event.other.type) -- will print debug text in output
end