Gameplay::isBitSet

From RAGE Multiplayer Wiki
Revision as of 21:12, 6 May 2017 by Marty uploader (talk | contribs) (yay)

Returns bit's boolean state from [offset] of [address].

Example:
GAMEPLAY::IS_BIT_SET(bitAddress, 1);

To enable and disable bits, see:
GAMEPLAY::SET_BIT(&bitAddress, 1); // enable
GAMEPLAY::CLEAR_BIT(&bitAddress, 1); // disable

Syntax

mp.game.gameplay.isBitSet(address, offset);

Required Arguments

  • address: int
  • offset: int

Return value

  • Boolean

Example

// todo

See also

Template:Gameplay s function c