Gameplay::setMissionFlag: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
If true, the player can't save the game. <br><br><br>MulleDK19: If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all.<br><br>^ also, if the mission flag is already set, the function does nothing at all | If true, the player can't save the game. <br><br><br>MulleDK19: If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all.<br><br>^ also, if the mission flag is already set, the function does nothing at all | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.setMissionFlag(toggle);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.setMissionFlag(toggle);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''toggle:''' Boolean | *'''toggle:''' Boolean | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:12, 6 May 2017
If true, the player can't save the game.
MulleDK19: If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all.
^ also, if the mission flag is already set, the function does nothing at all
Syntax
mp.game.gameplay.setMissionFlag(toggle);
Required Arguments
- toggle: Boolean
Return value
- Undefined
Example
// todo