Перейти к содержанию

Decisionevent::isShockingEventInSphere

Материал из RAGE MP Wiki Archive
Версия от 21:05, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.decisionevent.isShockingEventInSphere(type, x, y, z, radius);</syntaxhighlight>

Required Arguments

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

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:Decisionevent s function c