Audio::playPain: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 20:59, 6 May 2017

Last 2 parameters always seem to be 0.

EX: Function.Call(Hash.PLAY_PAIN, TestPed, 6, 0, 0);

Known Pain IDs
________________________

1 - CRASHES GAME (DON'T USE) - (EDIT from someone else: Does NOT crash in 1.0.617.1 for me)
6 - Scream (Short)
7 - Scared Scream (Kinda Long)
8 - On Fire

- jedijosh920

Needs another parameter [int p2]. The signature is PED::PLAY_PAIN(Ped ped, int painID, int p1, int p2);

- sollaholla

Syntax

audio.playPain(painID, p1, p2);

Required Arguments

  • painID: int
  • p1: float
  • p2: int

Return value

  • Undefined

Example

// todo

See also