[RGSS3] Custom Push Back

Here's the math.

radians = degrees * Math:😛I / 180 degree = radians(Math.atan2(hero.y - ai.y, ai.x - hero.x))hero and ai are arguments that can be changed by just calling it in an event. 

Well let me explain what the script should do, the hero or event can one or the other back based on the degree shown in the math example.   

While as simple as this is I've never actually gotten it to work, if anyone can help it'd be appreciated. 
Hello; this is more appropriately posted here at the RGSS Support section. 

Original thread: https://forums.rpgmakerweb.com/threads/rgss3-custom-push-back.43237/