Jump to content

Recommended Posts

Hi all im pretty tired of CUP'S bullshit when it comes to executing VM script's. 

Rant aside here is my SQF file titled "introscene.sqf":

 

titleCut ["", "BLACK FADED", 999];

titleText ["Pre-Loading Objects, stablizing frame rate", "PLAIN"];

playMusic "music17"

sleep 4;

0 = createDialog "IntroCard";

titlecut [" ","BLACK IN",2];


_camera = "camera" camcreate [0,0,0];
_camera cameraeffect ["internal","back"];
_angle = 0;

_camera camSetpos [4439.47,4654.71,37.0427];
_camera camSettarget [4444.59,4517.27,19.0443];
_camera camCommit 0;
while {_angle < 360} do {
_angle = _angle + 1;

_camera camSetRelPos [10*cos(_angle),10*sin(_angle),4];
_camera camCommit 0.1;

sleep 10;

_camera camSetpos [4236.59,6745.48,55.1633];
_camera camSettarget [4173.15,6814.03,16.4087];
_camera camCommit 0;
while {_angle < 360} do {
_angle = _angle + 1;

_camera camSetRelPos [10*cos(_angle),10*sin(_angle),4];
_camera camCommit 0.1;

sleep 10;

closeDialog 2;

camDestroy _camera;

};
 

I have this as my init Field:

 

player execVM "introscene.sqf";

 

I have CUP terrains installed which i think has changed the coding language.

 

just need at Init command that will Behave like a execVM command for CUP.

 

I keep getting a generic error for the sleep commands.

 

Edited by R0adki11
removed profanity

Share this post


Link to post
Share on other sites

I don't think CUP has anything to do with this. It can't change your sqf code. Try this :

 

playMusic "music17" ;

 

 

Also... player execVM "introscene.sqf";

You don't need  "player". You can execute  anywhere (objects, triggers, etc.) I'd recommend using an init.sqf file. The game will run that file at the start automatically.

You can then put the execVM "introscene.sqf"; right in that init.sqf file. The "init" is short for initialization (start/auto).

 

https://community.bistudio.com/wiki/Event_Scripts#init.sqf

  • Like 5

Share this post


Link to post
Share on other sites

Yep i just noticed that after looking over my code. well i'm an idiot. Sorry CUP developers you have redeemed yourself. 

Share this post


Link to post
Share on other sites
8 hours ago, nickcage said:

 Sorry CUP developers you have redeemed yourself. 

 

Maybe you should consider editing that last line of your original post, there's no real need for that. 

  • Like 6

Share this post


Link to post
Share on other sites
On 3/31/2021 at 6:38 AM, nickcage said:

Yep i just noticed that after looking over my code. well i'm an idiot. Sorry CUP developers you have redeemed yourself. 

 

Inappropriate language has been removed. Consider this a warning.

 

Quote

1) No Flaming/Flame-baiting/bigotry

Abusive, racist, sexist, homophobic comments (or any other type of bigotry), profanity, personal attacks and name calling are not allowed either on the board or through PM's. If you receive a PM that is abusive or you find offensive please forward it to a moderator who will investigate.

Flame-baiting is also not tolerated; flame-baiting is making a post to someone that is obviously intended to elicit an angry response. Mocking/teasing/ridiculing someone or the point someone wants to make is also flame-baiting. This also applies to other areas of the forums such as leaving visitor messages on people's profiles as well as quoting someone against their wishes in your signature to belittle/tease/mock them. If someone asks you to remove something they posted on the forum from your signature you must remove it.

 

  • Like 3
  • Thanks 1

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

×