camdev
Member-
Content Count
19 -
Joined
-
Last visited
-
Medals
Everything posted by camdev
-
ARMA 3 Addon Request Thread
camdev replied to max power's topic in ARMA 3 - ADDONS & MODS: DISCUSSION
So I had this thought while blowing up some AI in domination, why don't factions/individual players have separate maps? What I thought was why don't we allow for someone, when creating say a marker, to choose who can see the marker. This might consist of nearby players withing a 30-50 meter radius, the players faction, or the entire server. If we had this, we could have really cool missions where you have to kill someone and use their map to find the enemies camps or where they are planning to attack. Personally, I thought this would be a really good idea to add and would allow for new missions. It also could be set as a server setting or something of that sort. -
So I had this thought while blowing up some AI in domination, why don't factions/individual players have separate maps? What I thought was why don't we allow for someone, when creating say a marker, to choose who can see the marker. This might consist of nearby players withing a 30-50 meter radius, the players faction, or the entire server. If we had this, we could have really cool missions where you have to kill someone and use their map to find the enemies camps or where they are planning to attack. Personally, I thought this would be a really good idea to add and would allow for new missions. It also could be set as a server setting or something of that sort.
-
Unlock Script not working w/ Action?
camdev posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So here's the issue, I have this action I setup and it seems to show up fine on the vehicles that it should ( as in the ones that you own cause this is for island life ) but the vehicle will not unlock. Here, to help anyone one that can help to fix this, I will include the action, the original* keypress for unlock, the keys.sqf, and the lockNunlock.sqf that i wrote. So here it goes. hope someone can help. Action: action665 = _role addaction ["--Lock/Unlock Vehicle","lockNunlock.sqf",["lockunlock"],1,false,true,"",'_vcl = (nearestobjects [getpos player, ["Air", "Ship", "LandVehicle"], 3] select 0);player distance _vcl < 5 and _vcl in INV_VehicleArray']; Original KeyPress: //L key case 38: { if(!INV_shortcuts)exitwith{}; _vcls = nearestobjects [getposatl player, ["LandVehicle", "Air", "ship"], 7]; _vcl = _vcls select 0; if(!(_vcl in INV_VehicleArray))exitwith{player groupchat "You do not have the keys to this vehicle.";_handled=true;}; ["schluessel", _vcl, 0] execVM "keys.sqf"; _handled=true; }; keys.sqf: _art = _this select 0; if (_art == "use") then { _item = _this select 1; _anzahl = _this select 2; if (!(createDialog "schluessel")) exitWith { hint "Dialog Error!"; }; { if (not(isnull _x)) then { _index = lbAdd [1, format ["%1 (%2)", typeOf _x, _x]]; lbSetData [1, _index, format ["%1", _x]]; }; } forEach INV_VehicleArray; buttonSetAction [2, "if ((lbCurSel 1) > -1) then { [""schluessel"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; buttonSetAction [4, "if ((lbCurSel 1) > -1) then { [""dropschluessel"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; buttonSetAction [5, "if ((lbCurSel 1) > -1) then { [""schluesseluebergabe"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; }; if (_art == "schluessel") then { _vcl = _this select 1; _sel = _this select 2; if (player distance _vcl < 20) then { if (not(locked _vcl)) then { format ["%1 lock true;", _vcl] call broadcast; player groupChat localize "STRS_inv_items_vehiclelock_locked"; } else { format ["%1 lock false;", _vcl] call broadcast; player groupChat localize "STRS_inv_items_vehiclelock_unlocked"; }; } else { player groupChat localize "STRS_inv_items_vehiclelock_closer"; }; }; if (_art == "dropschluessel") then { _vcl = _this select 1; _sel = _this select 2; INV_VehicleArray = INV_VehicleArray - [_vcl]; player groupChat localize "STRS_inv_items_weggeworfen"; execVM "Scripts\statSave\antiglitch.sqf"; }; if (_art == "schluesseluebergabe") then { _vcl = _this select 1; _sel = _this select 2; _spielernum = call compile INV_InventarGiveReceiver; _spieler = INV_PLAYERSTRINGLIST select _spielernum; _playerobject = INV_PLAYERLIST select _spielernum; if (!(_spieler call ISSE_UnitExists)) exitWith { player groupChat localize "STRS_inv_not_ingame"; }; if (_playerobject == player) exitWith { player groupChat localize "STRS_inv_inventar_uebergabe_self"; }; if (player distance _playerobject > 20) exitWith { player groupChat localize "STRS_inv_inventar_uebergabe_distance"; }; format ["if (INV_ROLESTRING == ""%1"") then { INV_VehicleArray = INV_VehicleArray + [%2]; player groupChat localize ""STRS_inv_items_uebergabe_schluessel_success""}; ", _spieler, _vcl] call broadcast; //INV_VehicleArray = INV_VehicleArray - [_vcl]; player groupChat localize "STRS_inv_items_uebergabe_schluessel_success_self"; }; lockNunlock.sqf: private ["_selection","_vcl"]; _selection = (_this select 3)select 0; if (_selection == "lockunlock") then _vcl = (nearestobjects [getpos player, ["LandVehicle"], 10] select 0); if (_vcl in INV_VehicleArray) then { if (player distance _vcl <10) then { if (not(locked _vcl)) then { format ["%1 lock true;", _vcl] call broadcast; player groupchat localize "STRS_inv_items_vehiclelock_locked"; } else { format ["%1 lock false;", _vcl] call broadcast; player groupchat localize "STRS_inv_items_vehiclelock_unlocked"; } else { player groupchat localize "STRS_inv_items_vehiclelock_closer"; }; -
Action only shown for a car you own?
camdev posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So usually in an Island Life server, you would press L to unlock your vehicle while when pressed, would run case 38: { if(!INV_shortcuts)exitwith{}; _vcls = nearestobjects [getposatl player, ["LandVehicle", "Air", "ship"], 7]; _vcl = _vcls select 0; if(!(_vcl in INV_VehicleArray))exitwith{player groupchat "You do not have the keys to this vehicle.";_handled=true;}; ["schluessel", _vcl, 0] execVM "keys.sqf"; _handled=true; }; What I am looking to do is to take this and put it into a scroll option, but I would only like it to show up when you are with a vehicle that you own. The beginning would simply start with something like action665 = _role addAction ["Lock/Unlock Vehicle"... and so forth. I thought another file that may be useful is the keys.sqf which looks like this: _art = _this select 0; if (_art == "use") then { _item = _this select 1; _anzahl = _this select 2; if (!(createDialog "schluessel")) exitWith { hint "Dialog Error!"; }; { if (not(isnull _x)) then { _index = lbAdd [1, format ["%1 (%2)", typeOf _x, _x]]; lbSetData [1, _index, format ["%1", _x]]; }; } forEach INV_VehicleArray; buttonSetAction [2, "if ((lbCurSel 1) > -1) then { [""schluessel"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; buttonSetAction [4, "if ((lbCurSel 1) > -1) then { [""dropschluessel"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; buttonSetAction [5, "if ((lbCurSel 1) > -1) then { [""schluesseluebergabe"", (INV_VehicleArray select lbCurSel 1), lbCurSel 1] execVM ""keys.sqf""; }; closedialog 0; "]; }; if (_art == "schluessel") then { _vcl = _this select 1; _sel = _this select 2; if (player distance _vcl < 20) then { if (not(locked _vcl)) then { format ["%1 lock true;", _vcl] call broadcast; player groupChat localize "STRS_inv_items_vehiclelock_locked"; } else { format ["%1 lock false;", _vcl] call broadcast; player groupChat localize "STRS_inv_items_vehiclelock_unlocked"; }; } else { player groupChat localize "STRS_inv_items_vehiclelock_closer"; }; }; if (_art == "dropschluessel") then { _vcl = _this select 1; _sel = _this select 2; INV_VehicleArray = INV_VehicleArray - [_vcl]; player groupChat localize "STRS_inv_items_weggeworfen"; execVM "Scripts\statSave\antiglitch.sqf"; }; if (_art == "schluesseluebergabe") then { _vcl = _this select 1; _sel = _this select 2; _spielernum = call compile INV_InventarGiveReceiver; _spieler = INV_PLAYERSTRINGLIST select _spielernum; _playerobject = INV_PLAYERLIST select _spielernum; if (!(_spieler call ISSE_UnitExists)) exitWith { player groupChat localize "STRS_inv_not_ingame"; }; if (_playerobject == player) exitWith { player groupChat localize "STRS_inv_inventar_uebergabe_self"; }; if (player distance _playerobject > 20) exitWith { player groupChat localize "STRS_inv_inventar_uebergabe_distance"; }; format ["if (INV_ROLESTRING == ""%1"") then { INV_VehicleArray = INV_VehicleArray + [%2]; player groupChat localize ""STRS_inv_items_uebergabe_schluessel_success""}; ", _spieler, _vcl] call broadcast; //INV_VehicleArray = INV_VehicleArray - [_vcl]; player groupChat localize "STRS_inv_items_uebergabe_schluessel_success_self"; }; I hope someone can help and I thank anyone that helps. Also I thought that an unflip vehicle option may be helpful in this post as it only comes up when you have the keys and are at teh driver door, So first will be the action and then the file. Action: action122 = _role addaction ["Unflip vehicle","unflipvehicle.sqf",["unflip"],1,false,true,"",'_vcl = (nearestobjects [getpos player, ["Air", "Ship", "LandVehicle"], 3] select 0);player distance _vcl < 5 and _vcl in INV_VehicleArray']; unflipvehicle.sqf: _selection = (_this select 3)select 0; if(_selection == "unflip") then { _vcl = (nearestobjects [getpos player, ["LandVehicle"], 10] select 0); //if (_vcl == "") exitwith {player groupchat "No vehicles in range";}; if (_vcl in INV_VehicleArray) then { if ((count crew _vcl) > 0) exitWith {player groupChat "The vehicle is not empty!";}; player groupchat "turning your vehicle over, wait 5s within 10meters."; sleep 5; if (player distance _vcl < 10) then { _vcl setvectorup [0.001,0.001,1]; player groupchat "Your vehicle has been reset"; } else { player groupchat "Try again, stay within 10m"; }; } else { player groupchat "You need the keys to unflip a vehicle"; }; }; -
Action only shown for a car you own?
camdev replied to camdev's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ok, so after looking at this for a while, I got a few things down. I got the action to only show up on a car you own using this action: action123 = _role addaction ["*Lock/Unlock Vehicle","lockNunlock.sqf",["lockunlock"],1,false,true,"",'_vcl = (nearestobjects [getpos player, ["Air", "Ship", "LandVehicle"], 3] select 0);player distance _vcl < 5 and _vcl in INV_VehicleArray']; Now the problem I have is not getting the vehicle to unlock or lock. here is the quick lockNunlock.sqf that i made: _selection = (_this select 3)select 0; if(_selection == "lockunlock") then { _vcl = (nearestobjects [getpos player, ["LandVehicle"], 10] select 0); if (_vcl in INV_VehicleArray) then { if (player distance _vcl <10) then { if (not(locked _vcl)) then { format ["%1 lock true;", _vcl] call broadcast; player sideChat localize "STRS_inv_items_vehiclelock_locked"; } else { format ["%1 lock false;", _vcl] call broadcast; player sideChat localize "STRS_inv_items_vehiclelock_unlocked"; } else { player sideChat localize "STRS_inv_items_vehiclelock_closer"; }; Hopefully anyone can help with this now. -
So if you have played any island life lately, you may know that there is a spam thing going on and is located (most likely) somewhere inside of the mods. So, I was wondering if there is anyway to stop the script using another script. If anyone could help it would be greatly appreciated. Thanks.
-
Script for stopping scripts?
camdev replied to camdev's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well, so far we have found that the script should look something like this http://pastebin.com/ZP9qeuqd what they did is hide it somewhere in the mods which freezes everyone's arma and crashes it. They've decided to do this now after the year or two that Island Life servers have been running with these mods. Its happens to pretty much every server with the mods enabled and makes a lot of the community angry. There is a script that we have that tones it down a bit but sometimes still freezes the game. I'm looking for something that wont make it freeze and wont make it spam chat. -
I have a script for a life server that allows people to call 911 without using global chat, there is only one problem. I need to know how to make it open an interface so that you can use the script. Can anyone help? I pretty much need to know how to make a menu for it.
-
So I was wondering if anyone knew a script to disable 3rd while on foot, while still making it available in vehicles. Also if I could have a brief explanation on how to make it work it would be appreciated. Thanks
-
So I've been trying to do this all day and decided to try and get some help. This is what I'm trying to do. So I'm trying to use this Tow truck (Cooters tow truck which can be found here:http://www.armaholic.com/page.php?id=10857) and use it in my life server. What I need help with is having a script that makes it so that only that car can tow things but it can tow every vehicle. Also if possible I would rather have it so that when im in a certain proximity of a vehicle I can press a button and it will attach. If you cant do that though maybe a scroll option. If anyone could help it would be GREATLY appreciated. Thanks
-
Anyone know how to change speeds?
camdev posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
So I was wondering if anyone could help me. Its a simple question. Does anyone know how to change the speeds of cars (maybe on and off road ) that are in mods such as a modded lancer model or something for an RP server? -
Disable 3rd on Foot?
camdev replied to camdev's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So will all of this still leave 3rd person available if driving? -
So I tried to add some cars with their classnames to an Island life server and i came out with a problem... So after i added the cars, i joined the server and when i take money out, it deletes it. Also if I press bring up the menu, it just simply says Any and it doesnt have the default Keys and money. Also if i bring up the second menu and it says Scalar. If anyone knows the awnser to this problem, please help. And if no one knows, does anyone know how to add things to a life server without a masterarray.sqf and simply just use the classnames? Here is the MasterArray: http://pastebin.com/Fm0BspBX And here are the classnames of the Cars: http://pastebin.com/5kKAkZZm
-
Attach script variable help
camdev replied to eagledude4's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So i put the stuff in, but i still dont get the option to Attach or tow anything -
Does anyone know of a script that can go into a trigger that will cause a game logic's script to be read again?
-
Trigger+Game logic script?
camdev replied to camdev's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I mean like say i had a game logic, and it runs its script at the beginning of the server's start. And then when a trigger goes off, it tells the game logic to run its script again. -
So ive been setting up some realistic car mods, and i was wondering how i can add them to say shops like in takistan life or so. Does anyone know how?
-
So i have TLR (Takistan Life Revolution) server and in any server on arma, if you look up when you join it has mission and then description. I really need to know how to change the description. Does anyone know? Plz awnser
-
Can anyone help with some TLR mission file problems?
camdev posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So i have a tlr server that ive been trying to setup but there are well, 2 problems. One problem is that i cant find the file in which you put the ID for the admins to get the admin panel. So yeah if you could help with that, that would be nic. The 2nd problem is that i was wondering if anyone knew how to set it up so that people that donate get more money when they join and also where i have to put there Id or whatever. Hope you guys can help! :) Thanks -CamDeV