Search the Community
Showing results for tags 'exec'.
Found 2 results
-
Animations & Lifestate in Multiplayer
lawman_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
As part of a multiplayer mission, there's a downed AAF pilot. The unit is setUnconscious, and had a "revive" option. Here is it's .init: if isServer then {this setUnconscious true;}; this addAction [ "<t color='#B70000'>Revive</t>", { _help = [_this select 0,_this select 1] execVM "law\pilotRevive.sqf"; pilotRevive = true; }, "",0,true,true,"","(side _this == west) && (lifeState _target == 'INCAPACITATED')",3 ]; pilotRevive.sqf the following. params [["_casualty",objNull],["_caller",objNull]]; if ((isNUll _caller) || (isNUll _casualty)) exitWith {}; if (isMultiplayer) then { (_caller) playMove "AinvPknlMstpSnonWnonDnon_medic0"; sleep 5; (_casualty) setUnconscious false; (_casualty) playMove "AinjPpneMstpSnonWnonDnon_rolltofront"; sleep 4; //was 3 (_casualty) playMove "AmovPpneMstpSnonWnonDnon_AmovPercMstpSnonWnonDnon"; sleep 5.25; //was 1.25 [_casualty,""] remoteExec ["switchMove",0,true]; (_casualty) enableAI "ALL"; (_casualty) setUnitPos "UP"; (_casualty) setHit ["legs", 1]; (_casualty) doMove [6675.358,11257.388,0]; sleep 2; (leader group (_caller)) groupChat "The pilot thanks us."; sleep 3; (leader group (_caller)) groupChat "He says we can go. He will radio for CasEvac."; sleep 1; } else { (_caller) playMove "AinvPknlMstpSnonWnonDnon_medic0"; sleep 5; (_casualty) setUnconscious false; (_casualty) playMove "AinjPpneMstpSnonWnonDnon_rolltofront"; sleep 4; (_casualty) playMove "AmovPpneMstpSnonWnonDnon_AmovPercMstpSnonWnonDnon"; sleep 5; (_casualty) switchMove ""; (_casualty) enableAI "ALL"; (_casualty) setUnitPos "UP"; (_casualty) setHit ["legs", 1]; (_casualty) doMove [6675.358,11257.388,0]; sleep 2; (leader group (_caller)) groupChat "The pilot thanks us."; sleep 3; (leader group (_caller)) groupChat "He says we can go. He will radio for CasEvac."; sleep 1; }; The events work fine in singleplayer; the unit rolls over, gets up and hobbles to the position with his injured leg. In multiplayer, he currently goes from down to up with no transition, and his lifestate remains unconscious. I think i'm not really understanding what needs to be executed where here. I tried executing the playMove's on each client before but I was getting reports that the unit was getting stuck in a loop of different animations and ultimately ended up still lying face down. But then I saw that playMove has a global effect, so I stopped executing it on all clients. Except now the intermediate actions all seem to be having no effect, and the sleep commands didn't seem to appear. Help would be much appreciated, since I can only test this properly on the community test server which is a pain to keep doing. Thanks, Law- 3 replies
-
- animations
- lifestate
-
(and 4 more)
Tagged with:
-
Website > Server | Code Execution System (Node.JS)
OptixDev posted a topic in ARMA 3 - ADDONS & MODS: DISCUSSION
Website > Server Code | Execution System (Node.JS) Made By Optix Special Thanks to KilzoneKid for his release of the URL_Fetch DLL's V0.0.1 For those of you who do not understand or know what this is, in basic, it is a system of executing code on a server without physically being on it. How this works essentially it uses node.js to handle specific commands and does stuff with them. I personally use Glitch.Io to host my node.js server. it is a free service that allows you host your node.js project online and develop upon it live. This system contains one mod folder @Optix_WebExec which contains the necessary files that hold the Arma functions that use KK's URL_Fetch dll. This is required to make the connection to the Node.js server and pull the content that is due to be executed. BEFORE ANYONE STARTS THINKING THIS CAN BE USED MALICIOUSLY IT CANNOT ITS FULLY SERVER SIDED AND CAN ONLY BE USED IF PEOPLE HAVE THE SERVERS CORRECT LINK DEFINED IN A CONFIG! How to Use: your Node.js server link here / exec / sqf code here - This is what is used to add code to the file which Arma server checks every x amount of seconds, This can be defined in the config file found in Optix_WebExecConfig.pbo. Please note that in the case you pass any code containing irrelevant content to sqf or code containing any syntax errors currently will stop the server loop from executing correctly (Due to the errors), I have been working on a system to automatically handle and log this but had issues during the process and wanted to release asap so currently this version does not contain this feature, but stay tuned for updates in the future. your Node.js server link here / log - This is what is used to view the systems logs. The system logs events such as server connections, code added to be executed and exec list clearing. your Node.js server link here / v - This returns the current version of Arma code exec. Setup: 1) Host your node.js server using the code provided using your prefered method of hosting. 2) Install the Arma Addon onto your Server NOT Client. (This is a server sided add-on and is by no means needed on any clients) 3) Configure the config found in the Optix_WebExecConfig.pbo 4) Use the above commands to carry out the desired process. Video Showcase: Files: Download the Project here: GitHub Kind Regards, Conner 'Optix' Add me on Steam :)