Jump to content
Sign in to follow this  
accroalhelico

movie start with init.sqs?

Recommended Posts

hello

I create a movie file "monintro.sqs"

code

_camera = "camera" camCreate [27914.28,29749.47,2.00]

_camera cameraEffect ["internal","FRONT"]

_camera camPrepareTarget [-54000.93,87107.11,5.37];

_camera camPreparePos [27914.28,29749.47,2.00];

_camera camPrepareFOV 0.700;

_camera camCommitPrepared 0

@camCommitted _camera

_camera camPrepareTarget [-54000.93,87107.11,5.67];

_camera camPreparePos [27907.55,29739.96,2.00];

_camera camPrepareFOV 0.700;

_camera camCommitPrepared 2

@camCommitted _camera

_camera camPrepareTarget [-54000.93,87107.11,5.44];

_camera camPreparePos [27899.99,29729.26,2.02];

_camera camPrepareFOV 0.700;

_camera camCommitPrepared 2

@camCommitted _camera

_camera camPrepareTarget [-54000.93,87107.11,5.50];

_camera camPreparePos [27894.55,29721.56,2.24];

_camera camPrepareFOV 0.700;

_camera camCommitPrepared 2

@camCommitted _camera

player cameraEffect ["terminate","back"]

camDestroy _camera

exit

when I run it with the initialization of the unit player with code

this exec "monintro.sqs"

no problem this work

Now i want start with File "init.sqf"

before i remove the initalizer of unit player and create a file "init.sqf"

code

execVM "monintro.sqs";

but this does not work

Share this post


Link to post
Share on other sites

try

monintro = [] execVM "monintro.sqs";

or

monintro = [intro1] execVM "monintro.sqs";

or (if the above is in the "init.sqf" then you would use in the "initialization of the unit player" to call init.sqf)

init = [init1] execVM "init.sqf";

Share this post


Link to post
Share on other sites

Not real expert but i dont think you can ExecVM an sqs i think the last choice above is best advice ?

or

monintro = [] execVM "monintro.sqf"; << was previousl .sqs

oh and also im not sure tthe camera script is in sqf format nad may return error too , so maybe jus stay with [] exec "monintro.sqs" ?

Edited by Thromp

Share this post


Link to post
Share on other sites

thank you for speed response

it works with this for the init.sqf

monintro = [] exec "monintro.sqs";

and with this for the intialisation of unit

init = [] execVM "init.sqf";

Share this post


Link to post
Share on other sites

I just found that. I'll give it a look.

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  

×