OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: schuler on 04 Jul 2007, 12:19:02

Title: ending mission with cutscene
Post by: schuler on 04 Jul 2007, 12:19:02
  whats the best way to end mission after a cutscene, exit.sqs,  ForceEnd .. i just want the ending to be in the cutscene script. thanks , schuler
Title: Re: ending mission with cutscene
Post by: JasonO on 04 Jul 2007, 17:19:09
Most of my missions are multiplayer so I have a trigger with the type as end#1 (or something like that) and then the condition has DoEnd. In init.sqs I have DoEnd = False and then at the end of the cutscene I would have:
Code: [Select]
DoEnd = True
PublicVariable "DoEnd"
Title: Re: ending mission with cutscene
Post by: schuler on 05 Jul 2007, 06:51:06
 Thanks JasonO, i'll give that a go. sounds pretty straight foward, cheers