Added logging to understand which creatures do not have a socialGroup assigned to them (to prevent exceptions).

This commit is contained in:
Cekis
2018-03-23 16:00:19 -07:00
committed by CekisSWG
parent c050217184
commit c537e515b7
@@ -65,6 +65,10 @@ public class ai_combat_assist extends script.base_script
}
String type = getStringObjVar(self, "creature_type");
dictionary aiData = dataTableGetRow("datatables/mob/creatures.iff", type);
if(aiData == null){
LOG("DESIGNER_FATAL", "Creature Type (" + type + ") not found in creatures table (datatables/mob/creatures.iff)!!");
return false;
}
float assistRange = aiData.getFloat("assist");
if (assistRange == 0.0f)
{