Decisionevent::isShockingEventInSphere: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Some events that i found, not sure about them, but seems to have logic based on my tests:<br><br>        '82 - dead body<br>        '86 - explosion<br>        '87 - fire<br>        '88 - shooting, fire extinguisher in use<br>        '89 - shooting<br>        '93 - ped using horn<br>        '95 - ped receiving melee attack<br>        '102 - living ped receiving shot<br>        '104 - player thrown grenade, tear gas, smoke grenade, jerry can dropping gasoline<br>        '105 - melee attack against veh<br>        '106 - player running<br>        '108 - vehicle theft<br>        '112 - melee attack<br>        '113 - veh rollover ped<br>        '114 - dead ped receiving shot<br>        '116 - aiming at ped<br>        '121 - armed<br><br>*JulioNIB<br><br>Here is full dump of shocking event types from the exe camx.me/gtav/tasks/shockingevents.txt <br>(Looks like julios guesses are pretty accurate)
Some events that i found, not sure about them, but seems to have logic based on my tests:<br><br>        '82 - dead body<br>        '86 - explosion<br>        '87 - fire<br>        '88 - shooting, fire extinguisher in use<br>        '89 - shooting<br>        '93 - ped using horn<br>        '95 - ped receiving melee attack<br>        '102 - living ped receiving shot<br>        '104 - player thrown grenade, tear gas, smoke grenade, jerry can dropping gasoline<br>        '105 - melee attack against veh<br>        '106 - player running<br>        '108 - vehicle theft<br>        '112 - melee attack<br>        '113 - veh rollover ped<br>        '114 - dead ped receiving shot<br>        '116 - aiming at ped<br>        '121 - armed<br><br>*JulioNIB<br><br>Here is full dump of shocking event types from the exe camx.me/gtav/tasks/shockingevents.txt <br>(Looks like julios guesses are pretty accurate)
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">decisionevent.isShockingEventInSphere(type, x, y, z, radius);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.decisionevent.isShockingEventInSphere(type, x, y, z, radius);</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:05, 6 May 2017

Some events that i found, not sure about them, but seems to have logic based on my tests:

'82 - dead body
'86 - explosion
'87 - fire
'88 - shooting, fire extinguisher in use
'89 - shooting
'93 - ped using horn
'95 - ped receiving melee attack
'102 - living ped receiving shot
'104 - player thrown grenade, tear gas, smoke grenade, jerry can dropping gasoline
'105 - melee attack against veh
'106 - player running
'108 - vehicle theft
'112 - melee attack
'113 - veh rollover ped
'114 - dead ped receiving shot
'116 - aiming at ped
'121 - armed

*JulioNIB

Here is full dump of shocking event types from the exe camx.me/gtav/tasks/shockingevents.txt
(Looks like julios guesses are pretty accurate)

Syntax

mp.game.decisionevent.isShockingEventInSphere(type, x, y, z, radius);

Required Arguments

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

Return value

  • Boolean

Example

// todo

See also

Template:Decisionevent s function c