tModLoader Need help on custom AI.

CephHead

Skeletron Prime
The one thing I haven't been able to figure out so far in modding is custom AI. I can't seem to find any threads explaining how that sort of thing works, nor was I able to find a basic custom AI to learn off of. I want to make a Wizard Slime that flies around above your head, just out of sword's reach, that shoots projectiles down on you and spawns in the daytime. The only part I can't figure out is how to determine enemy position based on player position, and stay in a relative position to the player. Could anybody please explain this to me?

P.S. Sorry for the long post :p

EDIT: a) I think I figured it out. b) I know this is in the wrong thread. Oops *facepalm*.
 
Last edited:
Back
Top Bottom