Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting General

[arma 2] how end intro after my video ends?

(1/1)

FlashPoint1985:
I set an intro in start of my SP mission, it doesn't include any camera, actually a video plays at start of mission intro using this code:


--- Code: ---24 cutText ["", "BLACK OUT"];
_video = ["videoname.ogv"] spawn bis_fnc_playVideo;
waitUntil {scriptDone _video};
sleep 4;
24 cutText ["", "BLACK IN"];
--- End code ---

but after video ends, player appears, which is a rabbit as I set! I want intro automatically skip after video ends, or skip in for example 30 seconds after mission intro start, then player lead to briefing screen and start main mission content from there.
thanks

h-:
Not sure I completely follow but if you want the intro movie to play prior to briefing the mission has to have intro; as in a player and a end#1 trigger placed on the map in the 'Intro' section of the editor, and then add a file initIntro.sqf in which you add:

--- Code: ---whateverglobalvariableiwanttousetoendtheintrowith = false;

24 cutText ["", "BLACK OUT"];
_video = ["videoname.ogv"] spawn bis_fnc_playVideo;
waitUntil {scriptDone _video};
sleep 4;
whateverglobalvariableiwanttousetoendtheintrowith = true;

--- End code ---

And in that end#1 trigger's condition field whateverglobalvariableiwanttousetoendtheintrowith
:dunno:

FlashPoint1985:
Thanks man I will test that, although I did it by another way, but your answer is more accurate.

Navigation

[0] Message Index

Go to full version