OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 15 Sep 2002, 02:35:38

Title: problems starting intro cam on Sarugao!
Post by: Arctic on 15 Sep 2002, 02:35:38
 I am having trouble getting my introcam.sqs files to create the cam on Sarugao Island! I have the cam created in the script and I have:
Code: [Select]
[] exec "introcam.sqs" in the init field of the player. I have tried putting the exec command line in the activation field of a trigger as well.

Is this a bug with Sarugao Island or my script?
Title: Re:problems starting intro cam on Sarugao!
Post by: icarus_uk on 15 Sep 2002, 02:48:03
does the script activate?  Put;

hint "activated"

At the start of your script.  this way you can find out if the script is being called properly.
Title: Re:problems starting intro cam on Sarugao!
Post by: Arctic on 15 Sep 2002, 05:37:08
i did the hint "activation" thing and it didn't pop up. I don't know.  :noo:

Title: Re:problems starting intro cam on Sarugao!
Post by: KTottE on 15 Sep 2002, 14:29:20
Hmm, then chances are your script isn't working.

Could you post your script here and let us look at it, so we can solve this for you mate.

Maybe you should try executing it with
Code: [Select]
this exec "introcam.sqs"

Cheers, KTottE
Title: Re:problems starting intro cam on Sarugao!
Post by: Arctic on 15 Sep 2002, 15:35:12
Here is my intro cam script. I have left it unfinished because it is easier for me to put the cutscenes together that way. However, it should be going to the targets regardless of the script being done or not.

Code: [Select]
;Introcam.sqs
;Intro sequence for the mission Operation D

_cam = "camera" camcreate [0,0,1]
_cam cameraeffect ["internal", "back"]
;start
_cam camsettarget cX
_cam camsetrelpos [5, 3, 1.5]
_cam camcommit 0
~0.5

hint "activated"

titlecut ["", "Black In", 2]
~2

_cam camsettarget c1
_cam camsetrelpos [5,3,1.5]
_cam camcommit 0

titletext ["Sarugao Island", "PLAIN DOWN", 5]
~5.5

_cam camsettarget c2
_cam camsetrelpos [-5, 3, 1.5]
_cam camcommit 5.5
~8

titlecut ["As the Soviets steadily increased thier hold on the island, public dissent occurred", "plain down", 7]
~7.5

titlecut ["", "plain down", 2]
~2
Title: Re:problems starting intro cam on Sarugao!
Post by: SEAL84 on 17 Sep 2002, 00:28:39
Try renaming the script to "intro.sqs".

Only intro scripts named that way seem to work for me.
Title: Re:problems starting intro cam on Sarugao!
Post by: Gameer_77 on 17 Sep 2002, 00:34:27
Make sure its named introcam.sqs, not introcam.sqs.sqs. Get what i mean?  :-\

Are you saving it?  ::)

What text editor are you using? You should use Notepad or Wordpad.

 8)PEACE
Title: Re:problems starting intro cam on Sarugao!
Post by: crow on 17 Sep 2002, 06:57:30


Code: [Select]
;Introcam.sqs
;Intro sequence for the mission Operation D

_cam = "camera" camcreate [0,0,1]
_cam cameraeffect ["internal", "back"]
;start
_cam camsettarget cX
_cam camsetrelpos [5, 3, 1.5]
_cam camcommit 0
~0.5
I may be wrong but try
_cam = "camera" camcreate [0,0,0]
I may not be correct but I beleive that is what the first line should be you have [0,0,1] I have never had good luck using anything but the [0,0,0] then using _cam camsetrelpos [0,2,3]
get what I am trying to say. :)
Title: Re:problems starting intro cam on Sarugao!
Post by: Gameer_77 on 17 Sep 2002, 13:01:29
But the script is phyiscally not running. Try putting another script in the folder and see if it runs.

 8)PEACE