Jump to content

Recommended Posts

Posted (edited)

Anyone know how to get the SquareRoot function to work, the CK doesn't recognise it.

 

iMoveDist = sqrt(4.0)

 

The error : sqrt is not a function or does not exist.

 

Also abs and pow do the same too :/

Edited by Halstrom
Posted (edited)

According to the wiki, those functions are in the Math script, so have you tried, for example, something like:

float fMoveDist = Math.sqrt(4.0)

I have not worked with Fallout 4 myself much but that was the first thing that crossed my mind, if it helps. If not, then hopefully someone else has a better idea of what to try. :thumbsup:

Edited by Contrathetix
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...