Captinlarry 0 Posted June 30, 2022 Im having issues calling a Sqf through a simple radio trigger using a RemoteExcec call{playsound "JediDown";}; remoteExec ["Scripts\Start.sqf", 2]; The Trigger in QuestionBane of my existence Path Scripts\StartList of SQFs Also having some issues with Addactions that activate SQFs. call{this addaction [ "Disable Security Lockdown", { "StarLock.sqf" remoteExec ["execVM", 2];}];} I was Using this ^^ but my Mod guys tell me that will call on every machine, kill frames and crash the server. Any and all help would be apperciated Share this post Link to post Share on other sites
NunesSergio 17 Posted July 1, 2022 remoteExec'ing a .sqf goes like this: //Using "example.sqf" Local (normal) execution: [] execVM "example.sqf"; To remote execute on server machine: "example.sqf" remoteExec ["execVM", 2]; If the script requires argument(s): [[_arg1, _arg2], "example.sqf"] remoteExec ["execVM", 2]; 1 Share this post Link to post Share on other sites
sarogahtyp 1108 Posted July 1, 2022 6 hours ago, Captinlarry said: my Mod guys tell me that will call on every machine, kill frames and crash the server. read about the targets parameter and you will know where your remoteexec starts the script: https://community.bistudio.com/wiki/remoteExec Share this post Link to post Share on other sites
pierremgi 4850 Posted July 1, 2022 12 hours ago, Captinlarry said: Also having some issues with Addactions that activate SQFs. call{this addaction [ "Disable Security Lockdown", { "StarLock.sqf" remoteExec ["execVM", 2];}];} I was Using this ^^ but my Mod guys tell me that will call on every machine, kill frames and crash the server. Any and all help would be apperciated No. You can addAction on init field of an edited object/unit, like you do: this addAction [...]; It's fine. That runs on every player (JIP). The question is what starLock.sqf is? You can ruin performance with a poorly scripted sqf, but it's OK, even remote executing on server, with an accurate script. Share this post Link to post Share on other sites
Captinlarry 0 Posted July 7, 2022 On 7/1/2022 at 7:47 AM, pierremgi said: No. You can addAction on init field of an edited object/unit, like you do: this addAction [...]; It's fine. That runs on every player (JIP). The question is what starLock.sqf is? You can ruin performance with a poorly scripted sqf, but it's OK, even remote executing on server, with an accurate script. It calls a funtion that moves multiple objects away from an opening like a door, fires off 8 UnitPath scripts and has some time delays Share this post Link to post Share on other sites