I’m trying to use Math.trunc in a UE script, and I’m getting this error message: org.mozilla.javascript.EcmaError: TypeError: Cannot find function trunc in object [object Math].
Any idea why this would be happening?
m
Mark
08/06/2020, 8:24 PM
It isn’t implemented in the Rhino JavaScript environment
e
eminero
08/06/2020, 8:27 PM
probably you might be using SS 2.1 in order to use that method