Gameplay::isBitSet: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 12: Line 12:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_s_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 09:58, 22 July 2024

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