Home   Help Search Login Register  

Author Topic: How to End an Intro?  (Read 1123 times)

0 Members and 1 Guest are viewing this topic.

Offline ahmed117

  • Members
  • *
  • The 3d!t0R -=I.S.I=-
How to End an Intro?
« 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)
The 3d!t0R            -=O.F.P.E.C=-                                                         -=I.S.I=-

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: How to End an Intro?
« Reply #1 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.
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba