Jump to content
JGames Family

Exec an earthquake globally

Recommended Posts

I have put a "[3] call bis_fnc_earthquake;" on a script in the mission and put "execVM "EarthQuake.sqf"; " but when I exec it globally I only see it and if I exec server-side, nobody see it... any help so that everyone sees the camera shaking? Thanks.

Share this post


Link to post
Share on other sites

The function must be executed on each client so I think you need to do it like this (run this code from the server):

 


// Tell all clients to call the bis_fnc_earthquake function
[3] remoteExec ["bis_fnc_earthquake",  ([0,-2] select isdedicated)  ];

 

Share this post


Link to post
Share on other sites
7 minutes ago, gc8 said:

The function must be executed on each client so I think you need to do it like this (run this code from the server):

 


// Tell all clients to call the bis_fnc_earthquake function
[3] remoteExec ["bis_fnc_earthquake",  ([0,-2] select isdedicated)  ];

 

So I ran that code in server execute and nothing happened at all...

  • Confused 1

Share this post


Link to post
Share on other sites
14 minutes ago, JGames Family said:

[3] remoteExec ["BIS_fnc_earthquake"];

It seems to be the correct one...

ok so when I do it directly in the console (server execute) it does work, but in the script with execVM doesn't... what can it be? @gc8

Share this post


Link to post
Share on other sites
7 minutes ago, JGames Family said:

ok so when I do it directly in the console (server execute) it does work, but in the script with execVM doesn't... what can it be? @gc8

 

are you running arma from the editor or maybe using dedicated server?

hows your execVM file looks like?

Share this post


Link to post
Share on other sites

Running arma in a dedicated server. ExecVP is: execVM "EarthQuake.sqf";

EarthQuake.sqf is in the root folder of the mission (where description.ext etc) and the call is correct cos the text displays.

Share this post


Link to post
Share on other sites
1 minute ago, JGames Family said:

execVM "EarthQuake.sqf";

 

where are you calling this code from? init.sqf?

and what's the contents of that file being executed?

Share this post


Link to post
Share on other sites

nope, I'm calling it from the game console. Ots executing just a text that works and the earthquake function.

Share this post


Link to post
Share on other sites
1 minute ago, JGames Family said:

nope, I'm calling it from the game console. Ots executing just a text that works and the earthquake function.

 

 

Hmm , well it should be called from the server that's all I know. I think you need to click the "server exec"

Share this post


Link to post
Share on other sites

[1] remoteExec ["BIS_fnc_earthquake"]; 

works in server execute but when I do an execVM to the script that contains that in server execute it doesn't do anything 😞

Share this post


Link to post
Share on other sites

hard to say whats going on without the actual code

Share this post


Link to post
Share on other sites

have you tried putting systemchat in the end of the file to make sure all the code is executed? also do you have error reporting on, to make sure there's no errors?

Share this post


Link to post
Share on other sites

yeah, the formats do work so im completely sure the script executes... what is more, in global works but only for me not for the rest...

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

×