OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: techn9ne on 19 Aug 2006, 18:04:42
-
hey its me again, erm i've got a problem executin a cam script...Again... when the cutscene should start, an error pops up in the corner of the screen sayin
camcommitted _cam |#|\par': error unknown command
please help arrgggghhh thanks
marcus :afro:
-
It would help us if you would post the relevant lines of the script. Bye the way the |#| is to show you where the error was detected.
-
well i dont really know what lines are relevant coz it it all seems fine, sorry im a noob at all this so its probly somthin really stupid to you guys but heres the whole cam script
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "top"]
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["You better tell me what i want to know spy!", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Well it all depends on what that is", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Why is jimmy dead?", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["so they finally got him did they", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["still, it dont suprise me after all he'd been expectin them", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Who, and tell me straight, or i WILL fucking shoot you", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["The russians you dumb fuck, who else", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["But the war ended years ago, why did they want him?", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Being a tank commander was a front. He was a spy", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["and the ruskies unfortunatly found out", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["The russians have been after his arse for years", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["A spy, but i thought you were the spy in these parts", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["I am, i took over when there became to much heat for jimmy to deal with", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["If thats the case, you know who killed him", "plain down", 2]
~4
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["I have an idea", "plain down", 2]
~4
_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Who", "plain down", 2]
~2
_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Colonel Volgin, hes the man incharge of russian operations in this area", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["and a very dangerous man", "plain down", 2]
~4
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit
-
Well if it fails at the start then the problem must be at the top of the script. I have nver used
_cam cameraeffect ["internal", "top"]
I always used
_cam cameraeffect ["internal", "back"]
I doubt that is the problem.
What puzzles me is the absence of an @ in your error message. Did you write the script in anything other than a simple text editor suuch as notepad? Try opening your script file in note pad and see what the
@camcommitted _cam
line looks like. It may be that you have a different character instead of the @
-
no i opend it in both wordpad and notepad and they both look exctly the same, im totaly stuck
-
Are you absolutely sure this is the script that is running - there can't be an older version around?
-
yeah im pretty sure
-
Just made a new mission on desert island, placed two soldiers named them sp and spy. Made a file named "intro.sqs" and ran it from a trigger. Works fine for me. Just copied your script into the file.
-
dont worry, crissis over, i dont know what went wrong but i wrote the whole script out again and it works perfectly, thanks anyway guys :D
marcus