Decisionevent::addShockingEventAtPosition: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
duration is float here<br><br>Event types- camx.me/gtav/tasks/shockingevents.txt
duration is float here<br><br>Event types- camx.me/gtav/tasks/shockingevents.txt
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">decisionevent.addShockingEventAtPosition(type, x, y, z, duration);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.decisionevent.addShockingEventAtPosition(type, x, y, z, duration);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''type:''' int
*'''type:''' int
Line 12: Line 12:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Decisionevent_function_c}}
{{Decisionevent_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:06, 6 May 2017

duration is float here

Event types- camx.me/gtav/tasks/shockingevents.txt

Syntax

mp.game.decisionevent.addShockingEventAtPosition(type, x, y, z, duration);

Required Arguments

  • type: int
  • x: float
  • y: float
  • z: float
  • duration: float

Return value

  • ScrHandle

Example

// todo

See also

Template:Decisionevent s function c