Audio::setSynchronizedAudioEventPositionThisFrame: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
Line 9: Line 9:
==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

Sets the position of the audio event to the entity's position for one frame(?)

if (l_8C3 == 0) {
sub_27fd1(0, -1, 1);
if (PED::IS_SYNCHRONIZED_SCENE_RUNNING(l_87D)) {
AUDIO::STOP_SYNCHRONIZED_AUDIO_EVENT(l_87D);
}
if (sub_7dd(l_A00)) {
AUDIO::_950A154B8DAB6185('PAP2_IG1_POPPYSEX', l_A00);
}
sub_91c('TK************ SETTING SYNCH SCENE AUDIO POSITION THIS FRAME ************TK');
l_8C3 = 1;
}

--

Found in the b617d scripts, duplicates removed:

AUDIO::_950A154B8DAB6185('CAR_5_IG_6', l_7FE[1/*1*/]);
AUDIO::_950A154B8DAB6185('EX03_TRAIN_BIKE_LAND', PLAYER::PLAYER_PED_ID());
AUDIO::_950A154B8DAB6185('FBI_2_MCS_1_LeadIn', l_40[2/*1*/]);
AUDIO::_950A154B8DAB6185('FIN_C2_MCS_1', l_24C[0/*1*/]);
AUDIO::_950A154B8DAB6185('MNT_DNC', l_5F);
AUDIO::_950A154B8DAB6185('PAP2_IG1_POPPYSEX', l_A00);

Syntax

audio.setSynchronizedAudioEventPositionThisFrame(p0, p1);

Required Arguments

  • p0: String
  • p1: Entity handle or object

Return value

  • Undefined

Example

// todo

See also