OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ahmed117 on 18 Jan 2012, 08:16:51

Title: How to End an Intro?
Post by: ahmed117 on 18 Jan 2012, 08:16:51
Guys, I managed to make an intro with the help of you guys, but there is a problem, The intro automatically starts  as the mission starts, but it does not ends automatically, I have to end it manually by pressing ESC key.... I want that Intro cutscene to end automatically, as the cutscene ends. please help me writing a line in the into.sqs script...

Ahmed117 (A.rogers)
Title: Re: How to End an Intro?
Post by: Gruntage on 18 Jan 2012, 09:06:05
Use these commands:

Code: [Select]
_camera cameraeffect ["terminate", "back"]
camdestroy _camera

endintro = true

'endintro' is a condition placed within a 'end1' trigger in the mission/intro. You should only use the 'endintro' part in the intro section of the mission (otherwise it would make the mission end).

The first two commands terminate the camera, allowing the camera scenes to end.