LogicalNot - Math

From Creation Kit
Jump to: navigation, search

F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.

Inverts arg1's bits.

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


int Function LogicalNot(int arg1) Global Native


  • arg1: The value to bit inverse.

Return Value

The decimal result of the bit inverse.


int iA = Math.LogicalNot(0x000063D8) ;iA == -25561
int iC = Math.LogicalNot(127) ;iC == -128

See Also