Gameplay::setRandomEventFlag: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
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_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:07, 6 May 2017

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

Template:Gameplay s function c