Dixxonn 0 Posted August 31, 2022 Hello, Do you know if it is possible to make the sound of a BIS_fnc_PlayVideo come out of an object ? I created a script to play a video on a screen, but when I move away from it, the sound continues to play since it does not come out of the object. Here is my script : cursorObject setObjectTextureGlobal [0,_video]; [_video, [10,10]] call BIS_fnc_playVideo; Thanks Share this post Link to post Share on other sites
Harzach 2505 Posted August 31, 2022 I expect you'll need to strip the audio from the video file and play it separately via say3D. 1 Share this post Link to post Share on other sites
phronk 895 Posted September 1, 2022 I'm pretty sure I remember playing a clip from Escape from New York in-game on a large Image Texture object and it had positional audio. It has been a while but it was either using code from KillzoneKid or a function inside the game meant for the Apex or Contact DLC. 2 Share this post Link to post Share on other sites
Dixxonn 0 Posted September 1, 2022 6 hours ago, Harzach said: I expect you'll need to strip the audio from the video file and play it separately via say3D. That's what I thought, thanks! On the other hand, I tried to pass my script with the PlaySound3D. So I am trying to retrieve the values in an array I can't get my select 2 back. It returns 0, do you have an idea? I used lbSetValue and lbValue but i don't know if it's the good decision private _display = findDisplay 3005; private _control = _display displayCtrl 1400; { private _i = _control lbAdd (_x select 0); _control lbSetData [_i,(_x select 1)]; _control lbSetValue [_i,(_x select 2)]; } foreach Config_Videos; private _display = findDisplay 3005; private _control = _display displayCtrl 1400; private _selectedIndex = lbCurSel _control; private _video = _control lbData (lbCurSel _control); [format["video: %1",_video],Color_Green] call Player_Notification; private _sound = _control lbValue (lbCurSel _control); [format["sound: %1",_sound],Color_Green] call Player_Notification; private _building = nearestObjects [player, ["Land_Billboard_F"], 20]; [format["building: %1",_building],Color_Green] call Player_Notification; _building setObjectTextureGlobal [0,_video]; playSound3D [_sound,_building,true,getPosASL _building,1,1,0]; About : _video : It's okay, thats works and return me the correct file _sound : That's doesn't work, return me 0 and not the file location _building : it's okay too Thanks for your help Share this post Link to post Share on other sites
Harzach 2505 Posted September 1, 2022 I don't really do much with controls, so I can't fully follow what you are doing, but I imagine it has to do with the way playSound3D needs to be directed to a file in the mission folder/.pbo. Quote Example 3: playSound3D [getMissionPath "mySound.ogg", player]; // to play a mission directory sound It may be as simple as adding getMissionPath to your existing call: playSound3D [getMissionPath _sound,_building,true,getPosASL _building,1,1,0]; Share this post Link to post Share on other sites
Dixxonn 0 Posted September 2, 2022 8 hours ago, Harzach said: I don't really do much with controls, so I can't fully follow what you are doing Hello, Players need to select into an combobox the video. When he select a video name and he click on an "START" button, the video start. I have an config file with 3 elements : Name Video path Sound path But i don't find the way to get the sound path Here is an preview of my config file : Config_Videos = [ ["Video 1","\FYD_Cinema\Videos\FYD_Video1\video.ogv","\FYD_Cinema\Videos\FYD_Video1\sound.ogg"], ["Video 2","\FYD_Cinema\Videos\FYD_Video2\video.ogv","\FYD_Cinema\Videos\FYD_Video2\sound.ogg"], ["Video 3","\FYD_Cinema\Videos\LesGrosMots4_ParolesDeChat\video.ogv","\FYD_Cinema\Videos\LesGrosMots4_ParolesDeChat\sound.ogg"] ]; publicVariable "Config_Videos"; Share this post Link to post Share on other sites