Jump to content
Sign in to follow this  
Hud561

Mission Intro Video

Recommended Posts

Hello Guys.

I 've created a mission with an intro video for it. No problem i set up the init.sqf with " []execVM"Video\VideoForIntro.sqf";" and of course a folder for the "VideoForIntro.ogv".  It played fine when i started the mission.

 

My problems are: First one, i couldn't  create a button for skipping this intro video. The second one is that during the intro exhibition i can access my player, 'though i can't see it, if i hit the "I" key (inventory) i can see my inventory.
I can`t think of a way to stop this from happening.

 

I found some hints for the first problem, but i'm probably doing sth wrong because i couldn't make them work.       

https://forums.bohemia.net/forums/topic/143857-intro-skip/

https://community.bistudio.com/wiki/BIS_fnc_playVideo - missionNamespace setVariable ["BIS_fnc_playVideo_skipVideo", true];


For the second problem, i have to confess that i just don't have the slightest idea where i should start from.

Thanks for the help.

Hud

Share this post


Link to post
Share on other sites

Best solution I can think of is enableSimulation (https://community.bistudio.com/wiki/enableSimulation). Just disable simulation for players while the video is playing and then re-enable it once the video ends. Another solution could be disableUserInput. While it'd get the job done I would advise against it, as it disables all input, so you would run into issues with any solutions to your first problem.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×