Sentri Posted August 26, 2017 Share Posted August 26, 2017 So here we are again back on UAVs. Rearming a UAV is simple but dosn't work properly everytime. Rearming takes like 5 min and so as an UAV Operator I do other stuff while the UAV is rearming and that's where it happens even with no orders and autonomous mode set on off the UAV decides to drive in the next possible game object, so that when I reconnect to the UAV it is stuck. The idea would be some kind of "lock" that makes it impossible for the UAV to move from the service point. Something like the fuel gets set to 0 and if rearming is finished it dosn't get set to 1 (100% fuel level) but the UAV gets an action(set fuel to 1 and deletes action after that), so that the UAV Operator has to use that action to "unlock" the UAV. Link to comment Share on other sites More sharing options...
Aegis_RVIR Posted August 26, 2017 Share Posted August 26, 2017 Maybe an idea would be to suspend the UAV a tiny bit above the ground so it cant get any ideas and go rogue. Once it is done the UAV will be put down on the ground and you can use it again. Just an idea..... Link to comment Share on other sites More sharing options...
Stanhope Posted August 26, 2017 Share Posted August 26, 2017 Vanilla arma has an option to toggle the autonomous mode of UAVs. It can be found in the UAV terminal on the left hand side just under the gunner camera if i'm not mistaken. This will prevent the UAVs from doing stupid things 90% of the time. The other 10% arma will just be arma and the UAV will just do whatever the heck it feels like doing. Yes not all UAV operators know and/or do this. However if it's just at base you can easily take a hunter, prowler or even quad and push the UAV back from the tree. Link to comment Share on other sites More sharing options...
Sentri Posted August 26, 2017 Author Share Posted August 26, 2017 As I worte even with autonomous mode off that happens. And sometimes Im not in the base to do that. This also happens to the UCAV and I can't stop it from jumping off the Carrier into the Water Link to comment Share on other sites More sharing options...
Stanhope Posted August 26, 2017 Share Posted August 26, 2017 Well that's just arma for you. The only thing we could do to fix that is either remove all of it's fuel or delete the crew and spawn new in when the UAV wants to actually is it. If anyone has some lightweight code for that, send it to me. But for now you'll just have to be careful. ps: the greyhawk service takes 262 seconds (approximately 4.5 minutes), the UCAV if serviced on the carrier, takes either the same time or 10 minutes. I'm still not sure . Link to comment Share on other sites More sharing options...
Sentri Posted August 26, 2017 Author Share Posted August 26, 2017 Here would be an code example. ServicePadNow: { // code... _objectToService setFuel 0; // code... _objectToService setFuel 1; // code... } MyIdeaForDeletingAndAddingFuel: { // code... _objectToService setFuel 0; // code... _objectToService addAction ["Set Fuel", { _object = _this select 0; _id = _this select 2; _object setFuel 1; _object removeAction _id; }]; // code... } Link to comment Share on other sites More sharing options...
Stanhope Posted August 26, 2017 Share Posted August 26, 2017 Don't know which language that'd be but i can tell you that that code will not work. Because addAction is local and not server side, meaning you cave the server and the server alone an action. But the server itself can't use. On top of this i don't see anything that'd make it only available to the UAV operator. Link to comment Share on other sites More sharing options...
ansin11 Posted August 26, 2017 Share Posted August 26, 2017 What does the service script run on? Client or server? Link to comment Share on other sites More sharing options...
Stanhope Posted August 26, 2017 Share Posted August 26, 2017 UAV service is triggered by a trigger (no kidding ), which in inactivation has: _handle = [(thisList select 0)] execVM "scripts\vehicle\rearmplane.sqf"; Link to comment Share on other sites More sharing options...
ansin11 Posted August 26, 2017 Share Posted August 26, 2017 Meaning we can or can't run addAction in it with or without remote execution? Link to comment Share on other sites More sharing options...
Sentri Posted August 26, 2017 Author Share Posted August 26, 2017 As far as I think now to do this we need to (addAction) within a function that will be (remoteExec) and preferble has the UAV Operator as target. Link to comment Share on other sites More sharing options...
Stanhope Posted August 26, 2017 Share Posted August 26, 2017 (edited) Quote Meaning we can or can't run addAction in it with or without remote execution? You can open google just as i can https://community.bistudio.com/wiki/execVM Edited August 26, 2017 by Stanhope Link to comment Share on other sites More sharing options...
Sentri Posted August 26, 2017 Author Share Posted August 26, 2017 Sorry if I again made a mistake. Service Script on sever remote execute a function on the UAV Operators machine. // code... _objectToService setFuel 0; // code... [_objectToService] remoteExec ["fuelFunction", uavOp]; // code... Function will be executed on the UAV Operators machine and will add the Action there. fuelFunction = { _objectToService = _this select 0; _objectToService addAction ["Set Fuel", { _object = _this select 0; _id = _this select 2; _object setFuel 1; _object removeAction _id; }]; }; Config.cpp class CfgRemoteExec { class Functions { mode = 2; class fuelFunction { allowTargets = 1; jip = 0; }; }; }; Link to comment Share on other sites More sharing options...
ansin11 Posted August 26, 2017 Share Posted August 26, 2017 Run upon player login to ensure a new UAV OP gets the action added after the old OP left. Link to comment Share on other sites More sharing options...
Sentri Posted August 27, 2017 Author Share Posted August 27, 2017 I will test a possible full solution on a private server will post the results soon. Link to comment Share on other sites More sharing options...
Sentri Posted August 28, 2017 Author Share Posted August 28, 2017 Here is a full solution. - Server side trigger - addAction via remoteExec - runs only between Server and UAV Op - checks UAVs when UAV Op changed - addAction if needed testMP.Altis.pbo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now