So my question is what is this event do? The ID for it is 5 [AKA RegisterUnitEvent(71002, 5, "Atali_poision") ] And I'm wondering is this like an AI_Agent almost? Like it would cast a certain percent of times or something.
My aim is to make a mob that cast an AOE posion at random times through combat, hoever AI_Agents on my server are really screwy. They always cast at spawn requardless of the event ID and keep casting untill the allowed castamount is reached but thats not what I need.
Basic question: Is there a way to script a mob in LUA so that it would randomly cast a spell throught the fight at a set chance? Not like at health intervals.. or is that how I would have to do it?
[Edit: More like 2 questions]