Background for Skyrim SE
Member of the clib script
intfunctioncBitwiseOp(inti1, inti2, intiBits=31, intiOp=1, boolbWarn=false)Global

Description

Documentation String

Requirements: None

Documentation Comment

31 bitwise operations. Returns a negative number on errors
Set iBits lower to limit the bitmask to the lower bits for efficiency - Def = 31bits
Set bOp for the bitwise operation. 0 = NOT, 1 = AND(default), 2 = OR, 3 = XOR
Set bWarn to True if you are too lazy to check the error return value, and want a notification
Code from Milagros Osorio http://www.gamesas.com/bitwise-ops-t256983.html


Parameters

  1. inti1

  2. inti2

  3. intiBits=31

  4. intiOp=1

  5. boolbWarn=false


Examples

Auto-Generated Example

int myInt__i1
int myInt__i2
int myInt__iBits
int myInt__iOp
bool myBool__bWarn

int returnedValue = clib.cBitwiseOp(myInt__i1, myInt__i2, myInt__iBits, myInt__iOp, myBool__bWarn)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.