fix crash in entity related AC scripts
add identifyEntity() to butterflies script
Merge pull request #3918 from ZappoMan/acEntityCrash

Ac entity crash