Jump to content
Sign in to follow this  
gummybear_qc

Play a video for the intro?

Recommended Posts

So yeah, I wanna make a intro but I would like the intro to be a made video, like I record something and then play the video in the mission. Anyone could come up with a full tutorial.

Thank you!

Share this post


Link to post
Share on other sites

Maybe when Java is working it would be possible but even if it was possible now this would add huge size to the mission file.

Would this be a single player mission? The mission file gets downloaded to all players so if it is a multiplayer mission you are making it would not be a good idea to embed a lot of large files like audio and video.

Share this post


Link to post
Share on other sites

Nan, its for playing with my other freind, il just give him the mission with mediafire. So how can I do it?

Share this post


Link to post
Share on other sites

http://community.bistudio.com/wiki/BIS_fnc_playVideo

description.ext

class RscPicture
{
access=0;
type=0;
idc=30;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};

//Macro defining a simple and standard scene picture.
//Parameters: index of the scene, path to the picture, x-coord, y-coord, width, height.
#define SCENE(INDEX, PIC, X, Y, W, H) \
class Scene##INDEX \
{ \
	idd = -1; \
	movingEnable = 0; \
	fadein = 0; \
	fadeout = 0; \
	duration = 300; \
	name = __EVAL("Scene" + #INDEX); \
	\
	class controls \
	{ \
		class Overlay \
		{ \
			idc = -1; \
			x = SafeZoneX; y = SafeZoneY; \
			w = SafeZoneH; h = SafeZoneH; \
			type = 0; \
			style = 48; \
			colorBackground[] = {0, 0, 0, 0}; \
			colorText[] = {1, 1, 1, 1}; \
			font = BitStream; \
			sizeEx = 0; \
			lineSpacing = 0; \
			text = PIC; \
		} \
	} \
};

class RscTitles
{
//	SCENE(1, "t\effect_ca.paa", -0.379, -0.135, 1.77, 1.181)
SCENE(1, "t\effect_ca.paa", 0,0,1,1)
};

picture.sqf

titleRsc ["scene1","PLAIN"];
sleep 0.3;

starting from mission trigger

bla = execVM "picture.sqf"; _video = ["filename.ogv",[-0.6,-0.5,2.2,2]] spawn bis_fnc_playVideo;

Never ventured deeper into this as 12mb missions are a huge nono in MP.

You´ll have to play around with the description.ext to fill the screen, above code was made long ago on my old 19" screen for a small fun mission.

  • Like 1

Share this post


Link to post
Share on other sites

Yeah I found that thing but how do I put the function, do I add it in the editor or waht, im a total newbie when its realted to codes and stuff like that.

Share this post


Link to post
Share on other sites

clicky <-- thats the mission i made with it, feel free to unpack and poke around.

edit: requires ArmA2 !

Share this post


Link to post
Share on other sites

According to the picture it requires Combined Operations (ArmA2 & OA), no mods :)

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  

×