Gameplay::deleteIncident: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Delete an incident with a given id.<br><br>=======================================================<br>Correction, I have change this to int, instead of int*<br>as it doesn't use a pointer to the createdIncident.<br>If you try it you will crash (or) freeze.<br>=======================================================
Delete an incident with a given id.<br><br>=======================================================<br>Correction, I have change this to int, instead of int*<br>as it doesn't use a pointer to the createdIncident.<br>If you try it you will crash (or) freeze.<br>=======================================================
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.deleteIncident(incidentId);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.deleteIncident(incidentId);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''incidentId:''' int
*'''incidentId:''' int
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 10:03, 22 July 2024

Delete an incident with a given id.

=======================================================
Correction, I have change this to int, instead of int*
as it doesn't use a pointer to the createdIncident.
If you try it you will crash (or) freeze.
=======================================================

Syntax

mp.game.gameplay.deleteIncident(incidentId);

Required Arguments

  • incidentId: int

Return value

  • int

Example

// todo

See also