Jump to content
Sign in to follow this  
oksman

BIS_Fnc_Titlecard - Intro & Outro

Recommended Posts

Hello fellas, I was going to try this myself but I got lost.

So I'm using the Fnc_titlecard to spawn an intro and an outro for my mission. Currently both a ran with this command

"rsc\intro.ogv" spawn BIS_fnc_titlecard;

So basically what happens is that the script runs but does not spawn a second titleCard. And thus this line does not stall the script

waitUntil { !isNil { BIS_fnc_titlecard_finished }

Alright so what happens is the titleCard doesn't spawn and finished can't be called as a value since it's not activated, or I'd say the whole thing doesn't run well. So what I need to do is make this useable twice in a mission.

Anyone who's familiar with the fnc_titlecard business?

Cheers

Edited by Oksman

Share this post


Link to post
Share on other sites

If your going to be creating an intro (thats an ".ogv" format) try this: :cool:

(remember to put this code below into your init.sqf, otherwise it will not work)

[color=#000000][font=Lucida Console]_video = ["myvideo.ogv"] [/font][/color][url="http://community.bistudio.com/wiki/spawn"]spawn[/url][color=#000000][font=Lucida Console] bis_fnc_playVideo;[/font][/color]
[url="http://community.bistudio.com/wiki/waitUntil"]waitUntil[/url][color=#000000][font=Lucida Console] {[/font][/color][url="http://community.bistudio.com/wiki/scriptDone"]scriptDone[/url][color=#000000][font=Lucida Console] _video};[/font][/color]

==========================================================================================================================

==========================================================================================================================

NOTE: You can also play the video by:

1. Put this into your trigger:

[] execVM "Video.sqf";

2. After putting the code into your trigger via map, create a ".sqf" in your mission folder (example: Video.sqf)

3. Open your video.sqf (with notepad) and put this code in it:

[color=#000000][font=Lucida Console]_video = ["myvideo.ogv"] [/font][/color][url="http://community.bistudio.com/wiki/spawn"]spawn[/url][color=#000000][font=Lucida Console] bis_fnc_playVideo;[/font][/color]
[url="http://community.bistudio.com/wiki/waitUntil"]waitUntil[/url][color=#000000][font=Lucida Console] {[/font][/color][url="http://community.bistudio.com/wiki/scriptDone"]scriptDone[/url][color=#000000][font=Lucida Console] _video};[/font][/color]

And thats it! Hope these scripts are the ones you are looking for. :D

Regards,

Ranwer

Share this post


Link to post
Share on other sites

I'll give it a try! The current wiki on the titlecards didn't tell me much. In fact had issues finding it!

Anyway I'll return with an answer!

Thanks

Edit: When debugging the mission and just running the script it went fine, thanks!

Edited by Oksman

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  

×