Background for Fallout 4
Member of the Math script
intfunctionRightShift(intvalue, intshiftBy)NativeGlobal

Description

Wiki Description

Shifts value right by n number of bits.


Caveats


Parameters

intvalue

CK Wiki Description

The integer that you wish to shift.

intshiftBy

CK Wiki Description

How many bits to shift to the right.


Examples

int iA = Math.RightShift(2146, 2) ;iA == 536
int iC = Math.RightShift(0x00802000, 9) ;iC == 16400

Auto-Generated Example

int myInt__value
int myInt__shiftBy

int returnedValue = Math.RightShift(myInt__value, myInt__shiftBy)

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.