So, basically I want a script applied to dragons so that they will cast an area-effect firespell if the player gets within a certain range (e.g. between 6000 and 3000 units). Can anybody suggest how to do this?
For example, the pseudocode i have in mind is:-
script dragonareaspell
if playerdistance > 3000
if playerdistance < 6000
then shout.flames at player
