Audio::playStreamFromObject

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Used with AUDIO::LOAD_STREAM

Example from finale_heist2b.c4:
AI::TASK_SYNCHRONIZED_SCENE(l_4C8[2/*14*/], l_4C8[2/*14*/]._f7, l_30A, 'push_out_vault_l', 4.0, -1.5, 5, 713, 4.0, 0);
PED::SET_SYNCHRONIZED_SCENE_PHASE(l_4C8[2/*14*/]._f7, 0.0);
PED::_2208438012482A1A(l_4C8[2/*14*/], 0, 0);
PED::SET_PED_COMBAT_ATTRIBUTES(l_4C8[2/*14*/], 38, 1);
PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(l_4C8[2/*14*/], 1);
if (AUDIO::LOAD_STREAM('Gold_Cart_Push_Anim_01', 'BIG_SCORE_3B_SOUNDS')) {
AUDIO::PLAY_STREAM_FROM_OBJECT(l_36F[0/*1*/]);
}

Syntax

mp.game.audio.playStreamFromObject(object);

Required Arguments

  • object: Object handle or object

Return value

  • Undefined

Example

// todo

See also

Template:Audio s function c