Background for Fallout 4
Member of the Math script
intfunctionLogicalNot(intarg1)NativeGlobal

Description

Wiki Description

Inverts arg1's bits.

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


Caveats


Parameters

intarg1

CK Wiki Description

The value to bit inverse.


Examples

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

Auto-Generated Example

int myInt__arg1

int returnedValue = Math.LogicalNot(myInt__arg1)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.