OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bored_onion on 08 Jul 2004, 21:13:22

Title: intro statup
Post by: bored_onion on 08 Jul 2004, 21:13:22
whenever i start my intros i use triggers to switch to a camera or create a camera etc. however, there is always a brief few seconds when the player is visible before the trigger becomes active and the intro actually starts.
its not a major problem but it looks kind of unprofessional. is it my CPU or is it a problem that has a simple solution? i appreciate any suggestions greatly

thank you
Title: Re:intro statup
Post by: ponq on 08 Jul 2004, 21:22:40
start your intro from the init.sqs.

If you don't have that file in your mission folder, create it, and put these lines in it:

[] exec "yourintrofile.sqs"

Hope this helps.
Title: Re:intro statup
Post by: Sui on 09 Jul 2004, 02:10:02
Or for an even more reliable way, call your intro script driectly from the player's init field.

This is always the first thing executed when a mission starts.

Also, bear in mind that if you want to start your intro script from the init.sqs, for anything created in the intro section of the editor, the script will need to be called: 'initintro.sqs'.

init.sqs will automatically run at the beginning of the mission.
initintro.sqs will automatically run at the beginning of the intro ;)

Hope that helps you out.