gdscei 1 Posted January 12, 2013 Is there a way to call a server-side script through a client script? Thanks. Share this post Link to post Share on other sites
Horner 13 Posted January 12, 2013 http://community.bistudio.com/wiki/addPublicVariableEventHandler Assign one of these on the server. Then you can alter the PV on the client to get it to call. Share this post Link to post Share on other sites
mikie boy 18 Posted January 12, 2013 example of how it should work init "FOCK_A10moveto" addPublicVariableEventHandler { private ["_moveto"]; _moveto = _this select 1; execVM _moveto; }; whatever.sqf - called from players addaction FOCK_A10moveto = "skills\A10CAS\A10timeout.sqf"; publicVariable "FOCK_A10moveto"; // This data will only be received on other machines. Not on the machine where it is executed. //therefore also run it for this machine execVM FOCK_A10moveto; Share this post Link to post Share on other sites
gdscei 1 Posted January 13, 2013 Thanks for the info both, got it working. Share this post Link to post Share on other sites
Horner 13 Posted January 13, 2013 Also look into publicVariableServer, just broadcasts to the server, works like a charm. Share this post Link to post Share on other sites