Gameplay::isBitSet: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Returns bit's boolean state from [offset] of [address].<br><br>Example:<br>GAMEPLAY::IS_BIT_SET(bitAddress, 1);<br><br>To enable and disable bits, see:<br>GAMEPLAY::SET_BIT(&amp;bitAddress, 1);  // enable<br>GAMEPLAY::CLEAR_BIT(&amp;bitAddress, 1); // disable
Returns bit's boolean state from [offset] of [address].<br><br>Example:<br>GAMEPLAY::IS_BIT_SET(bitAddress, 1);<br><br>To enable and disable bits, see:<br>GAMEPLAY::SET_BIT(&amp;bitAddress, 1);  // enable<br>GAMEPLAY::CLEAR_BIT(&amp;bitAddress, 1); // disable
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.isBitSet(address, offset);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.isBitSet(address, offset);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''address:''' int
*'''address:''' int
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:12, 6 May 2017

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