OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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:
[] 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?
-
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.
-
i did the hint "activation" thing and it didn't pop up. I don't know. :noo:
-
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
this exec "introcam.sqs"
Cheers, KTottE
-
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.
;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
-
Try renaming the script to "intro.sqs".
Only intro scripts named that way seem to work for me.
-
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
-
;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. :)
-
But the script is phyiscally not running. Try putting another script in the folder and see if it runs.
8)PEACE