PDA

View Full Version : movie start with init.sqs?



accroalhelico
Jan 6 2012, 11:40
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
@<hidden> _camera

_camera camPrepareTarget [-54000.93,87107.11,5.67];
_camera camPreparePos [27907.55,29739.96,2.00];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 2
@<hidden> _camera

_camera camPrepareTarget [-54000.93,87107.11,5.44];
_camera camPreparePos [27899.99,29729.26,2.02];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 2
@<hidden> _camera

_camera camPrepareTarget [-54000.93,87107.11,5.50];
_camera camPreparePos [27894.55,29721.56,2.24];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 2
@<hidden> _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

b101_uk
Jan 6 2012, 15:09
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";

Thromp
Jan 6 2012, 15:16
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" ?

accroalhelico
Jan 6 2012, 18:00
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";

hon0
Jan 7 2012, 12:09
I just found that. I'll give it a look.

http://www.youtube.com/watch?v=ipCJ_lL2LVo