Decisionevent::addShockingEventForEntity: Difference between revisions
(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.addShockingEventForEntity(type, entity, duration);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.decisionevent.addShockingEventForEntity(type, entity, duration);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''type:''' int | *'''type:''' int | ||
| Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Decisionevent_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:05, 6 May 2017
duration is float here
Event types - camx.me/gtav/tasks/shockingevents.txt
Syntax
mp.game.decisionevent.addShockingEventForEntity(type, entity, duration);
Required Arguments
- type: int
- entity: Entity handle or object
- duration: float
Return value
- ScrHandle
Example
// todo