OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rytuklis on 21 Jun 2011, 10:03:53

Title: Intro to mission?
Post by: Rytuklis on 21 Jun 2011, 10:03:53
Hello there. Before asking a question- yes , i did search, but all results was about "Switch " trigger and waypoints. And i need another help.
I have made a cutscene in intro. But when cutscene stops, camera returns to my soldier and i cant move or do antyhing so i have to press SPACE to "skip" the cutscene and only then mission plays. How can i make intro to switch to the mission after "cutscene.sqs" is over? thanks
Title: Re: Intro to mission?
Post by: Lenyoga on 21 Jun 2011, 20:10:22
Hi. I always create a trigger with the condition "EndMission" (And there is a list in the trigger dialog where you can choose something like "End 1" - choose this) in it's condition field (usually they have 'this' or something in it) and then edit the cutscene.sqs:
Put something like

Code: [Select]
_camera cameraEffect ["terminate","back"]
camDestroy _camera

EndMission = true

at the end of the script.

I think that should work. At least it does in my missions. Sorry if I sound a bit confused; I'm not a serial killer.