Jump to content

KutPax

Member
  • Content Count

    54
  • Joined

  • Last visited

  • Medals

Everything posted by KutPax

  1. Hiya folks, I'm trying to make a Picklock script, where you look at a door and it executes the script and gives you a certain % chance of unlocking it. I want to base this off of a script pierremgi helped me out with a long time ago, I'll list it below. Now instead of the door being breached, I want it to be unlocked. I have tried to work with "bis_disabled_Door_1", only that only refers to a specific door of an object, while I want the cursorobject door to be unlocked. I'm getting kind of stuck here since I have barely worked with doors in Arma. If anyone could help me out here, that'd be much appreciated!
  2. Amazing as always!
  3. I got it to work with your post @Melody_Mike, thanks for the help my dude!
  4. Wow I totally checked out the wrong file, I just read the correct one and you're right, I'm gonna play around with it in a bit!
  5. That still doesn't work out for me, I'm trying to edit the script I posted in the spoiler, to UNLOCK the door I am looking at, instead of kicking it open and playing an animation on the door so it rotates open with the speed accelerated by x8
  6. No, it's a dutch military thing 😉 Also the lock command seems to be for Vehicles, I'm trying to unlock a single door on a building which I am looking directly at (CursorTarget or CursorObject)
  7. Hiya, I'm working on something where I want an addaction to be added to a vehicle, but i'm having trouble with the locality. _ScanArea = 25; _yeet1 = nearestObjects[SPAWNTARGETOBJECT,["Air", "landVehicle"],_ScanArea] select 0; _SpawnerPos = (getposASL SPAWNTARGETOBJECT); _VehicleType = "VEHICLECLASSNAME" createVehicle _SpawnerPos; _VehicleType addAction ["Title Here","Scripts\Test.sqf",[],1,false,true,"","_this distance _target < 5"]; When I test this out in Singleplayer or in local MP, the action does get added to the vehicle, but when I try it out on a dedicated server, the action won't be added to the vehicle. I'm hoping someone can help me out with this and explain it a little bit, so I can improve my MP Scripting skills! 🙂 Thanks in advance
  8. KutPax

    Addaction MP help

    I'll write the full code here (slightly different than the above): if ( _ctrl2 lbText ( lbCurSel _ctrl2 ) isEqualTo "Large Equipment Crate" ) exitwith { _nearestAirVeh = nearestObject [BoxLoaderSkeet1, "Air"]; if (isNull _nearestAirVeh) then { hint "No Helicopter near the Box Loader."; } else { [_nearestAirVeh, 2000] call ace_cargo_fnc_setSpace; _nearestAirVeh allowDamage true; _BoxSpawnerPos2 = (getposASL BoxLoaderSkeet2); _HeliMovePos1 = (getposASL BoxLoaderSkeet1); _nearestAirVeh setPosASL _HeliMovePos1; sleep 0.1; _BoxLoaderVehicle1 = "Snake_Crates_Large_Equipment" createVehicle _BoxSpawnerPos2; _BoxLoaderVehicle1 setPosASL _BoxSpawnerPos2; [_BoxLoaderVehicle1, _nearestAirVeh] call ace_cargo_fnc_loadItem; hint format ["%1 Added to Aircraft", _ctrl2 lbText ( lbCurSel _ctrl2 )]; _nearestAirVeh allowDamage true; }; }; Basically: It spawns an object (In this case a crate) on _BoxSpawnerPos2 (Which is an invisible object which supplies the script with a position) Then it teleports the helicopter on _HeliMovePos1 to ensure that the helicopter is close enough for the box to be loaded in with the ace function And now this is where it calls the ace_cargo_fnc_loadItem function, only this does not work in a Dedicated Server, which led me to believe I had to remoteExecCall it. I haven't had the chance to attentively read your tutorial which you've linked me to, but I''ll be sure to do that tomorrow when I'm done with work. Thanks in advance!
  9. KutPax

    Addaction MP help

    (The following question is something different than the addaction question) I'm trying to make the following for remoteexeccall (correct me if i'm wrong here) _nearestVeh = nearestObject [SpawnerObjectName, "Air"]; _Vehicle1 = "CrateNameHere" createVehicle _Pos2; [_Vehicle1, _nearestVeh] call ace_cargo_fnc_loadItem; I've tried the following (Doesn't work): [[_Vehicle1, _nearestVeh]] remoteExecCall [ace_cargo_fnc_loadItem]; Any idea what I'm doing wrong here?
  10. KutPax

    Addaction MP help

    I'll give that a go, thanks! (Can't test it until tomorrow, I'll let you know!)
  11. KutPax

    Addaction MP help

    Addaction has a .sqf attached to it, which activates the .sqf with the vehicle spawn script listed above (with player execVM) Lemme know if you need more info or if this is enough
  12. KutPax

    Addaction MP help

    I execute the script with player execVM
  13. Hi there, I'm working on a script which detects all Air vehicles in a specific radius of a specific object, which then either results with a true which displays a hint saying "Vehicle in a 25m Radius!", or when it's false it will display a hint saying "There's no vehicle in a 25m radius!". I also want to implement the ACE Cargo Framework into this, to be specific, [object, vehicle] call ace_cargo_fnc_loadItem, where object is going to refer to the array of the vehicle which is inside of the 25m radius (_x or something, I'm not too familiar with array's). If there's anyone who reads this who has knowledge in this area, please do let me know! Cheers.
  14. This is what I've got now: if ( _ctrl2 lbText ( lbCurSel _ctrl2 ) isEqualTo "Test Listbox Item 1" ) exitwith { _nearestAirVeh = nearestObject [testskeet1, "Air"] select 0; if (!isNil _nearestAirVeh) then { hint "No Heli near testskeet1"; } else { hint "Heli Found near testskeet1"; [myObjectVarHere, _x] call ace_cargo_fnc_loadItem; }; }; Only I'm getting the following error: error select: Type Object, expected Array.String,Config entry
  15. I'm trying to get the radius from the point of an object with variable PositionSkeet
  16. It does not seem to want to recognise any air vehicle with "Air", any idea why?
  17. Heya, I'm working on a GUI with a RscCombo box, only I'm getting an error. This is my code: _display displayAddEventhandler ["Unload", { params ["_display"]; private _ctrlEdit13 = _display displayCtrl 6901; missionNamespace setVariable ["Snake_enteredText13", lbCurSel _ctrlEdit13, true]; }]; _ctrlEdit13 = _display displayCtrl 6901; _ctrlEdit13 lbSetCurSel (missionNamespace getVariable ["Snake_enteredText13", ""]); This is the error: Error lbSetCurSel: Type String, expected number If anyone knows a fix to this, please do let me know. I'd be very grateful!
  18. Wow, I tried something like that, but didn't realise I put the 0 between "". Anyways, it worked1 Thanks my dude
  19. The problem is I don't have a number. Any idea on how I can fix that?
  20. Hiya, I'm in a little bit of a pickle. I'm trying to make a GUI menu which has buttons in them. When one button is pressed, it will change the text or color of the other button and save this information to the server or mission so that whenever another player opens the GUI menu, it displays the same it does for the other player. Now I've tried to find the information I need on a lot of websites (Including the wiki), only without luck. I'll show you an example of what I have right now: fn_GUITest.sqf Script1.sqf Script2.sqf Any help would be greatly appreciated!
  21. It worked like a champ, I'd like to sincerely thank you for your help, not only have you fixed this script, but you've also taught me a lot of new tips and tricks. Thank you!
  22. Heya @7erra , Everything works great! I can't even express how thankful I am! I've only got one more question and then I'm out of your hair. Earlier you've sent the following code: This code allows me to save the text an rscedit box contains with the press of a button (And it works great!), only I was hoping to save the text in a different manner. I was thinking of using oneachframe or whenever closeDialog 0; is executed. Do you have any idea how I can formulate something like this?
  23. I'll give both of them a go when I get home from work tomorrow, thanks for the response again, you've been a huge help so far!
×