OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 26 Apr 2004, 17:51:16

Title: A favour to ask.
Post by: The-Architect on 26 Apr 2004, 17:51:16
Hi guys.
As my thread about my intro has not turned up any fruitful answers, I was wondering if someone could post me a sample intro camera script. NOT a cutscene script. I need it for the editor "intro". That way I can chop and change it for my own needs.
Cheers.
Title: Re:A favour to ask.
Post by: Loup-Garou on 27 Apr 2004, 10:08:41
Here's an example made by Macguba (don't forget to type [] exec "intro.sqs" in the init field of a unit, and to put a trigger : Type : End#1, Condition : true, Countdown : lengthofintro, lengthofintro, lengthofintro  ;D) :

; this is the camera script for the intro
; I'm not an expert on this kind of stuff so it isn't a particularly good intro
; however, it's better than nothing and demonstates some of the basics
; I really only created it to take a screenshot for the Overview pic


; lets get started

titlecut [" ","BLACK IN",3]

enableradio false

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]


; and ... action!

_cam camsettarget logic1
_cam camsetrelpos [-80,100,7]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["Tutorial Mission","plain down",2]

~2

; start the camera moving

_cam camsettarget fire1
_cam camsetrelpos [-35,-25,5]
_cam camcommit 20
@camcommitted _cam


titlecut ["created by macguba","plain down",2]

_cam camsettarget fire1
_cam camsetrelpos [0,-62,3]
_cam camcommit 15
@camcommitted _cam


titlecut ["","plain down",2]

_cam camsettarget logic2
_cam camsetrelpos [7,-7,3]
_cam camcommit 6
@camcommitted _cam

~4


titlecut ["","BLACK OUT",2]

~2

; tidy up and exit

_cam cameraeffect ["terminate", "back"]
camdestroy _cam

enableRadio true

exit
Title: Re:A favour to ask.
Post by: The-Architect on 27 Apr 2004, 20:04:48
ok, so whay when I do this, does it just cut back to the "player" when its finished?
It should go straight to the briefing screen shouldn't it?