This is sort of a script request, but a simple one, so I think I'll post it here also.
Say I define "target" as my enemy. How do I check for his states? I thought it was something along the lines of "target.states", but it seems to be wrong... I would need to call enemy's states array. How do I do that?