Page 1 of 1

GetAngleFrom(me, enemy)

Posted: Tue Jan 22, 2013 4:10 pm
by enric
Hi Pip,

//get the angle the enemy is presenting to my position, 0=looking straight at me, 180=I am directly behind them
GetAngleFrom(me, enemy);

But I receive values like:
-5580
-990
1170

??

Re: GetAngleFrom(me, enemy)

Posted: Tue Jan 22, 2013 4:17 pm
by pipfromslitherine
Hmmmm - let me look into it.

Cheers

Pip

Re: GetAngleFrom(me, enemy)

Posted: Tue Jan 22, 2013 7:32 pm
by pipfromslitherine
Thanks for reporting this! :) There was a bug caused by the update to fixed point maths with these functions. This is now fixed and will be part of the next update (though not sure if it will make it into the EXE for the first beta version).

Cheers

Pip

Re: GetAngleFrom(me, enemy)

Posted: Tue Jan 22, 2013 9:19 pm
by enric
Many unit actions scripts use this.
FIRE_AP, FIRE_HE, COMNATTOOLS, MORALETOOLS, AI,…