ClearBit

From the Fallout3 GECK Wiki
Revision as of 12:17, 16 July 2014 by imported>Odessa (sourced from nvse_whatsnew)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the specified int with the specified bit cleared.

Syntax

[help]
(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