Gameplay::setRandomEventFlag: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
MulleDK19: If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.<br>Does nothing if the mission flag is set.
MulleDK19: If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.<br>Does nothing if the mission flag is set.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.setRandomEventFlag(p0);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.setRandomEventFlag(p0);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' Boolean
*'''p0:''' Boolean
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 09:57, 22 July 2024

MulleDK19: If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.
Does nothing if the mission flag is set.

Syntax

mp.game.gameplay.setRandomEventFlag(p0);

Required Arguments

  • p0: Boolean

Return value

  • Undefined

Example

// todo

See also