PDA

View Full Version : math.atan2 function not found


Kirko
05-18-2016, 07:23 PM
I'm trying to use Math.atan2 but always get the error that the function isn't found. I tried just doing atan2 without the Math part but still doesn't work. Can we get this fixed?

ffcmike
05-19-2016, 02:04 AM
This could well be a function that simply doesn't exist despite being within documentation/scriptfunctions.

Shame you can't use Math as a construct as it might then be possible to do:


temp.m = new Math();
echo(temp.m.atan2(float, float));

Kirko
05-22-2016, 08:27 PM
Seems like this isn't the only function missing :(
Array.splice and push aren't found also.

I can make an alternative way to get want I I'm trying to do but still would be nice if someone can find them. :)

MysticalDragon
06-15-2016, 10:04 PM
it is possible those functions are for the Skills Games, so they would be restricted on local servers. Just a guess though.