JGames Family 5 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 I'm sure the script is executing cos I added ext and it does display the text. Share this post Link to post Share on other sites
gc8 909 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 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... 1 Share this post Link to post Share on other sites
JGames Family 5 Posted April 24, 2020 [3] remoteExec ["BIS_fnc_earthquake"]; It seems to be the correct one... Share this post Link to post Share on other sites
JGames Family 5 Posted April 24, 2020 Thx tho ^^. Will test later and tell u of doesnt work like that. Share this post Link to post Share on other sites
JGames Family 5 Posted April 24, 2020 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
gc8 909 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 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
gc8 909 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 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
gc8 909 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 Im clicking that one and nothing happens 😞 Share this post Link to post Share on other sites
JGames Family 5 Posted April 24, 2020 [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
gc8 909 Posted April 24, 2020 hard to say whats going on without the actual code Share this post Link to post Share on other sites
gc8 909 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 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
JGames Family 5 Posted April 24, 2020 lol, think it's fixed. Share this post Link to post Share on other sites
Melody_Mike 97 Posted April 25, 2020 @JGames Family Cool! What fixed it? I'd love to know, for future projects with global execution of external scripts on dedicated servers. Share this post Link to post Share on other sites