Jump to content

Audio Scene (Michaels Drug Flight)


LeFix

Recommended Posts

I want to play the audio when Michael was "flying" after Jimmy gave him drugs.

 

How do I implement this in my script?

 

 

 

family5.c4 is the script of the mission

AUDIO::START_AUDIO_SCENE("FAMILY_5_FLYING");

Doesn't work for me.

You can't hear anything...

Link to comment
Share on other sites

Starting that audio scene isn't necessary but I do it anyway.

 

Here's the code I use:

START_AUDIO_SCENE("FAMILY_5_FLYING");while (!LOAD_STREAM("FLYING_STREAM", "FAMILY_5_SOUNDS")) WAIT(0);PLAY_STREAM_FRONTEND();
  • Like 2
Link to comment
Share on other sites

I got a similar problem with these which wont play:

AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "Remote_Control_Fob", PLAYER::PLAYER_PED_ID(), "PI_Menu_Sounds", 1, 0);AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "Remote_Control_Close", PLAYER::PLAYER_PED_ID(), "PI_Menu_Sounds", 1, 0);AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "Remote_Control_Open", PLAYER::PLAYER_PED_ID(), "PI_Menu_Sounds", 1, 0);AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "Toggle_Lights", PLAYER::PLAYER_PED_ID(), "PI_Menu_Sounds", 1, 0);

They are used in freemode.c4. I also found more related to PI, from the same native script:

AUDIO::START_AUDIO_SCENE("GTAO_PI_OPEN_PERSONAL_VEHICLE_DOOR_REMOTE_SCENE");AUDIO::START_AUDIO_SCENE("GTAO_PI_OPEN_PERSONAL_VEHICLE_DOOR_SCENE");
AUDIO::_153973AB99FE8980(g_12925F, "GTAO_PI_Open_Personal_Vehicle_Door_Remote_Vehicle_Group", 0); // g_12925F is an entity 
Edited by R3QQ
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.