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

This commit is contained in:
Cekis
2017-01-29 03:25:42 +00:00
parent 9fcf4555c4
commit 021a1b0f9a
@@ -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)
{