Jump to content

SantoJ

Member
  • Content Count

    20
  • Joined

  • Last visited

  • Medals

Everything posted by SantoJ

  1. Is anyone able to explain why when this script (saveData.sqf): _UID = (_this select 0); _gear = getUnitLoadout player; _cash = cash; saveData = [_UID, _gear, _cash]; publicVariableServer "saveData"; is executed from here: shopKeep addAction ["Buy MP7 - £100", { if (cash >= 100) then { _unit = (_this select 1); _UID = getPlayerUID _unit; _unit addWeapon "CUP_hgun_MP7"; cash = cash - 100; null = [_UID] execVM "saveData.sqf"; }else { hint "Not Enough Cash"; }; }]; it works fine, but when i execute the script by just using execVM "saveData.sqf" i get this error: https://gyazo.com/08d24af6d3c8812600ebf989c1e0cf93
  2. I am trying to open a dialog with the O key using: waitUntil {!isNull(findDisplay 46)}; (findDisplay 46) displayAddEventHandler ["KeyDown","_this call keyspressed"]; keyspressed = { _keyDik = _this select 1; _shift =_this select 2; _ctrl = _this select 3; _alt = _this select 4; _handled = false; switch (_this select 1) do { case 24: {//U key if (_shift) then { createDialog "SANT_Loadout_Screen"; }; }; _handled; }; however nothing happens when the O key is pressed
  3. SantoJ

    Key Handler

    That works thank you!
  4. SantoJ

    Key Handler

    this works however no other key press is detected I.e. I cnanot move in any direction with WASD cant open Inventory Etc.
  5. Im trying to add a few things to a list box however im getting errors relating to missing ; _display = findDisplay 1400; _listBox = displayCtrl 1002; _listBox lbAdd "Trainee Gear"; _listBox lbAdd "Instructor Gear"; _listBox lbAdd "Auto Rifleman"; _listBox lbAdd "Anti-Tank"; _listBox lbAdd "EOD"; _listBox lbAdd "Marksman"; _listBox lbAdd "Sniper"; _listBox lbAdd "Medic"; _listBox lbAdd "Helicopter Pilot"; this is listBox.sqf being called through onLoad within the dialoag.hpp. onLoad = "[] spawn {execVM 'listBox.sqf';};";
  6. SantoJ

    List Box

    Works perfectly with this method thank you!
  7. SantoJ

    List Box

    i changed the onLoad to what you suggested but still get the same error: https://gyazo.com/380cb42c4a4060f007a84d1b9f14f977
  8. i have created this if statement with the hopes it would detect when the player is within 200m of a marker and show a message at the bottom right corner of the screen, however i keep getting an error on mission start regarding a missing bracket in line 1. if(player (getMarkerPos gatoro) < 200) then { _gatoro = ["Gatoro"] spawn BIS_fnc_infoText; }else {}; this script is called through the init.sqf with []execVM
  9. SantoJ

    if statement

    waitUntill works perfectly thank you, however its not repeatable... Any idea how id go about making it so?
  10. Would this script function in multiplayer setting
  11. SantoJ

    Live Feed Cameras

    no, all the screens will just go black out of nowhere
  12. Hi, I have set up some live feed cameras and am using an addAction to turn them on and off, this works perfectly in single player but in multiplayer the addAction simply has no effect. When executing cameras.sqf through the execute code module from Achilles the screen all turn black and show no live feed. Code: cameras.sqf: https://pastebin.com/pzCwKTGS camerasOff.sqf: https://pastebin.com/puukApqW addAction on laptop: this addAction ["Turn On CCTV", "cameras.sqf"]; this addAction["Turn Off CCTV", "camerasOff.sqf"];
  13. SantoJ

    Live Feed Cameras

    I got the addAction working however, all the screen with the live feed go black after a while and only begin streaming again when server is restarted
  14. is it possible to start a server with this bot?
  15. Squad name: ArmaMilsims.com Timezone/location : GMT Gamemode preference (eg coop or pvp): Coop Contact email: ArmaMilsimsStaff@gmail.com Website address: https://www.armamilsims.com/ Short description: Armamilsims.com is a relatively new group, however at its core is made up of members with a combined total of well over 20 thousand hours, we are a relaxed group with top of the line infrastructure and active mission makers and an active administrative team, we host missions every week for our members but recently we have also been hosting what we call The European Battlegroup a large scale campaign consisting of numerous other milsim communities from across Europe with, at its peak, 65 players. Language: English
  16. ArmaMilsims.com About Us ArmaMilsims is a unit aimed at providing players from all experience levels a platform to not only enjoy playing our missions but also have the chance at hosting their own. With top of the line servers, A website containing all the information you could possibly need and an active administration team, ArmaMilsims prides itself with being a relaxed and enjoyable community for all skill levels. Missions At ArmaMilsims we are proud to say we have been the host of not one but 3 major missions consisting of 50+ people from all across Europe AKA The European Battlegroup we also are looking forward to continuing this mission theme into the future! Other than the Battlegroup we also pride ourselves with being a platform for mission makers of all skill levels to come and propose missions and also make missions should they be up for the challenge we do this using our Mission Tier System: Mission Tiers Play Style Since we are a relaxed group we focus more on a fun atmosphere in our missions than a serious one, we also don't believe in formalities such as saluting senior ranks or addressing senior ranks as sir, we do however utilize a rank structure for the sole purpose of giving people in need of assistance someone to reach out to and also giving new members something to look up to. More info on our rank structure can be found here: Rank Structure Attendance Since we are a relaxed group we do not penalize members for being absent from missions, after all this is a game. We do however ask to be notified if you are no longer interested in being a part of the community. Media Courtesy of IrishGuy & Alfred More info can be found at: ArmaMilsims as well as: https://discord.gg/Q8ztxae Dont hesitate to join our TS3 should you have any questions: ts.armamilsims.com
  17. Im having an issue where when im trying to rotate the camera using the right mouse button the screen spins uncontrollably, this only seems to happen with the editor camera, the splendid camera works just fine there is alos no problem when im playing as a character im jut unable to rotate the camera in the editor.
  18. _wright = "Good Job Soldier, Radio Tower Restored To Our Control"; _progress = "Restoring Comm link"; _link = "Comm Link Partialy Restored"; Transmission = "Incoming Transmission..."; _Completed1 = False; _Completed2 = False; _Completed3 = False; // Radio Tower 1 generator1 removeAction 0; hint _progress; sleep 10; hint _link; Captain_Wright sideChat _wright; _Completed1 = True; // Radio Tower 2 waitUntil { waitUntil {_Completed1 = True}; if(_Completed1 = True) then{ generator2 removeAction 0; hint _progress; sleep 10; hint _link; Captain_Wright sideChat _wright; _Completed2 = True; }; }; if { _Completed1, _Completed2 = True; Incoming_Transmission sideChat Transmission; Crossroads sideChat "TEST" }; So this is the first script ive ever created completely from scratch the aim of it is when a player in-game activates an add action on an object some messages appear however i want the player to have to visit to objects before the overall objective is complete to do this i tried using waitUntil but this is where i got the errors, no doubt its horribly wrong but i thought id give it ago. Again this is the very first script ive made completely from scratch and on my own, so no doubt there is a much better way to do what i want.
  19. So i have recently been playing random zeus missions with some friends and sometimes the game hosting option in Arma doesnt work amazing with mods so i was wondering if anyone knew a good server host to use to play with friends on custom missions with mods with the possibility of expanding in future
×