Background for Skyrim SE

The Math Script

    The Math script is a part of Skyrim SE’s Papyrus scripting ecosystem. It is included with the base game, and is extended/modified by modded sources such as Skyrim Script Extender x64 (SKSE).

    For this script, the Papyrus index knows about:

    • 20 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • floatfunctionabs(floatafValue)NativeGlobal

        Calculates the absolute value of the number it is given.

      • floatfunctionacos(floatafValue)NativeGlobal

        Calculates the arccosine of the value it is given. The returned value is in degrees.

      • floatfunctionasin(floatafValue)NativeGlobal

        Calculates the arcsine of the value it is given. The returned value is in degrees.

      • floatfunctionatan(floatafValue)NativeGlobal

        Calculates the arctangent of the value it is given. The returned value is in degrees.

      • intfunctionCeiling(floatafValue)NativeGlobal

        Calculates the smallest integer greater than or equal to the passed in value.

      • floatfunctioncos(floatafValue)NativeGlobal

        Calculates the cosine of the value (in degrees) it is given.

      • floatfunctionDegreesToRadians(floatafDegrees)NativeGlobal

        Converts from degrees to radians.

      • intfunctionFloor(floatafValue)NativeGlobal

        Calculates the largest integer less than or equal to the passed in value.

      • floatfunctionpow(floatx, floaty)NativeGlobal

        Raises x to the y power, usually written as xy.

      • floatfunctionRadiansToDegrees(floatafRadians)NativeGlobal

        Converts from radians to degrees.

      • floatfunctionsin(floatafValue)NativeGlobal

        Calculates the sine of the value (in degrees) it is given.

      • floatfunctionsqrt(floatafValue)NativeGlobal

        Calculates the square root of the number it is given.

      • floatfunctiontan(floatafValue)NativeGlobal

        Calculates the tangent of the value (in degrees) it is given.

      • intfunctionLeftShift(intvalue, intshiftBy)NativeGlobal

        Shifts value left by n number of bits.

      • intfunctionRightShift(intvalue, intshiftBy)NativeGlobal

        Shifts value right by n number of bits.

      • intfunctionLogicalAnd(intarg1, intarg2)NativeGlobal

        Bitwise ANDs arg1 and arg2.

        Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.

      • intfunctionLogicalOr(intarg1, intarg2)NativeGlobal

        Bitwise ORs arg1 and arg2.

        Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.

      • intfunctionLogicalXor(intarg1, intarg2)NativeGlobal

        Bitwise XORs(Exclusive OR) arg1 and arg2.

        Despite being named "Logical", this function performs a bitwise operation.

      • intfunctionLogicalNot(intarg1)NativeGlobal

        Inverts arg1's bits.

        Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.

      • floatfunctionLog(floatarg1)NativeGlobal

        Returns natural logarithm of passed argument as float value.

      Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.