ClearBit

From GECK

A function added by the New Vegas Script Extender.

Description

Returns the specified int with the specified bit cleared.

Syntax

(int) ClearBit ValueToChange:int BitToClear:int

Example

int a
set a to 15		; bits 0-3 set
set a to ClearBit a, 2	; clear bit 2 (value 4)
; a is now 11

See Also

Personal tools