Jump to content

Sign in to follow this  
Mandingo

Camera Script help

Recommended Posts

Hi, I have been trying to build in some INTRO Camera scripts. It says in the tutorials to create scene.sqs script which i have done after setting up the cameras and making sure the camera unit was changed from "camera.sqs" to scene.sqs. Everything looks good but when i try to run the mission it says cannot find script.sqs. I made sure i put it user/documents/arma2/missions/missionfolder but I still cant get it to work. do i need something special to make the script activate on INTRO start.

Any help will be appreciated

Share this post


Link to post
Share on other sites

We cant help if you dont post the script here and how exactly you call it...;)

Share this post


Link to post
Share on other sites

titlecut [" ","BLACK IN",5]

_camera ="camera"camcreate [0,0,0]

_camera cameraeffect [ïnternal", "back"]

;=== 22:21:22

_camera camPrepareTarget [-90436.47,-15857.42,20708.35]

_camera camPreparePos [5112.75,5168.07,0.47]

_camera camPrepareFOV 0.700

_camera camCommitPrepared 0

@camCommitted _camera

~15

player cameraeffect ["terminate",""back"]

camdestroy camera

end1=true;

exit;

The above is the script that I have saved as "scene.sqs" file in notepad and copied it into the user/documents/arma2/missions/missionfolder

I am sure its something missing from how I am calling the script...

Sorry just a NEWB at all this.

thanks for the help

Share this post


Link to post
Share on other sites

how did you save the scene.sqs?

make sure you save with this attributes:

"All Files" and "UTF-8"

otherwise you only saved the notepad file.

Share this post


Link to post
Share on other sites

Ok i saved it as mentioned but still get the same thing. Do I need any other files in the mission folder like a file to execute scripts and make them run?

---------- Post added at 12:53 AM ---------- Previous post was at 12:52 AM ----------

Do i need to save it as script.sqs and not scene.sqs?

Share this post


Link to post
Share on other sites

Can you explain the init.sqf? I know I have used these for my mission briefings such as execVM "briefing.sqf"; do I also need one for my "scene.sqs" file to activate such as "execVM "scene.sqs"; ?

Thanks for the help

Share this post


Link to post
Share on other sites

is this scene being done from the "Mission" section of the editor or the "Intro" section? If it's already in the intro then you need a player that execs the cutscene file in the intro from his init line.

Share this post


Link to post
Share on other sites

Scene is being done from the Intro, I had used a game logic for the exec "scene.sqs" but also changed this to a player Unit. Unfortunately i am still getting SCRIPT "Scene.sqs"not found.

Should the INIT file be called INIT.SQF or INIT.SQS

Is the following code in the scene.sqs file correct and is there any special spacing between the code sections needed or does it look fine?

titlecut [" ","BLACK IN",5]

_camera ="camera"camcreate [0,0,0]

_camera cameraeffect [ïnternal", "back"]

;=== 8:49:58

_camera camPrepareTarget [-88090.41,-28642.25,13054.61]

_camera camPreparePos [5112.60,5167.96,0.43]

_camera camPrepareFOV 0.700

_camera camCommitPrepared 0

@camCommitted _camera

~15

player cameraeffect ["terminate",""back"]

camdestroy camera

end1=true;

exit;

I now have all the above files in the user/documents/arma2/missions/missionfolder

Share this post


Link to post
Share on other sites

I'm no expert in this, but here's what works for me.

Intro section, I have the player with the following in his init line

this exec "intro.sqs";

In the mission folder I have my intro.sqs

showCinemaBorder false
titlecut ["AnimalMother92 Presents","BLACK IN", 5]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

;=== 21:02:03
_camera camPrepareTarget plane
_camera camPreparePos [5260.43,5312.60,5.49]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
@camCommitted _camera

~16

titlecut ["Crash and Grab","BLACK OUT", 10]

~10

titlecut [" ","BLACK IN", 5]

Player cameraEffect ["terminate", "back"]
camDestroy _camera
endMission "END1";
Exit;

Hope that clears it up some. Not really my area of expertise. ;)

Share this post


Link to post
Share on other sites

Ok got it working, I changed the script name from scene to intro and now it works. Go figure...

Share this post


Link to post
Share on other sites

Hey after you start to mess with the camera how do you check your work?

Share this post


Link to post
Share on other sites
  Breeze said:
Hey after you start to mess with the camera how do you check your work?

Change your player "camera" init line from

this exec "camera.sqs"

to

this exec "[i]yourscenename[/i].sqs"

for whatever the name of your scene is. Then click "preview". When you are done, abort, change your player init line back to "camera.sqs" and do some more!

RR

Share this post


Link to post
Share on other sites

I'm pretty damn sure I saw a page on BIKI that had extensive info on camera scripting, explaning things like "black in" and "internal" and listing other command for the cam...but I can't find it for god's sake. :|

Pls can someone post a link?

Share this post


Link to post
Share on other sites

No not this one. It was in egnlish and on BIKI I guess. My German is like a dead rat fished from the sewer, but thanks.:D

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×