Jump to content

R3vo

Member
  • Content Count

    4326
  • Joined

  • Last visited

  • Medals

Community Reputation

2638 Excellent

About R3vo

  • Rank
    Second Lieutenant

Profile Information

  • Gender
    Male
  • Location
    Germany

Contact Methods

  • Steam url id
    76561198015178319

Recent Profile Visitors

4698 profile views
  1. R3vo

    Extend/reset sleep timer?

    Create a new variable and add 5 sec sleep to it for every additional kill after the first one. After 3 kills: Sleep 5; sleep TimeForAdditionalKills; //Reset counter I am at my phone so it's kinda tedious to write it down more detailed.
  2. private _ammo = "8Rnd_82mm_Mo_shells"; { _x addItemCargo [_ammo, selectRandom [1, 2]]; } forEach [box1, box2];
  3. Also read: https://community.bistudio.com/wiki/Arma_3:_Shooting_Targets
  4. Very interesting. Some of the lights really looked better in the Alpha. However, light shining through objects has always been the case as far as I remember.
  5. "ModuleCurator_F" createUnit [ //Save the module in a global variable known to the client getPosATL player, createGroup sideLogic, "myCuratorModule = this; this setVariable ['BIS_fnc_initModules_disableAutoActivation', false, true];" //We assign the module to a variable via its init ]; // Creating Zeus module on the map at player's position. myfnc_addZeus = { params ["_player"]; [_player, myCuratorModule] remoteExec ["assignCurator",2]; systemChat "You have gained access to Zeus. Press Y to access Zeus."; }; myfnc_removeZeus = { params ["_player"]; [_player] remoteExec ["unassignCurator",2]; systemChat "You have lost access to Zeus. To gain access to Zeus, select Become Curator from scroll menu." }; player addAction ["Become Curator", {_this select 1 call myfnc_addZeus}]; player addAction ["Leave Curator", {_this select 1 call myfnc_removeZeus}]; //This select 1 is the player who activates the action Issue fixed. You were using the createUnit syntax that does not the created unit/object. I am assigning the module to a variable now via its init.
  6. units _group findIf {alive _x} == -1 Should work as well.
  7. You are already doing that.
  8. It's group. You make it a string first but then you assign a group to it. The string is kinda redundant. What I noticed is, you are potentially creating a new group every second so you need to keep track of the number of groups and either delete them if needed or make sure you are not exeeding a certain threshold.
  9. If it works then it's good. I see no issue here for a mission that will not run 24/7.
  10. myCuratorModule = "ModuleCurator_F" createUnit [ //Save the module in a global variable known to the client getPosATL player, createGroup sideLogic, "this setVariable ['BIS_fnc_initModules_disableAutoActivation', false, true];" ]; // Creating Zeus module on the map at player's position. myfnc_addZeus = { params ["_player"]; [_player, myCuratorModule] remoteExec ["assignCurator",2]; systemChat "You have gained access to Zeus. Press Y to access Zeus."; }; myfnc_removeZeus = { params ["_player"]; [_player] remoteExec ["unassignCurator",2]; systemChat "You have lost access to Zeus. To gain access to Zeus, select Become Curator from scroll menu." }; _myCuratorPlayer addAction ["Become Curator", {_this select 1 call myfnc_addZeus}]; _myCuratorPlayer addAction ["Leave Curator", {_this select 1 call myfnc_removeZeus}]; //This select 1 is the player who activates the action
  11. Try with format then. It could also be that initPlayerLocal.sqf is executed before initServer.sqf thus your variable does not exist when the briefing code is executed. See https://community.bistudio.com/wiki/Initialization_Order ("order is not guaranteed")
  12. Briefing.html is not valid for Arma 3 and thus not needed. See https://community.bistudio.com/wiki/Briefing.html Execute your briefing script via initPlayerLocal.sqf. This will ensure it's added locally for each player that joins the mission. See also: https://community.bistudio.com/wiki/Briefing.html
  13. PC_fn_compass_direction = { params ["_direction"]; private _sector = round (_direction / 22.5); [ "north", "north-north-east", "north-east", localize "STR_PC_groupchat_153", localize "STR_PC_groupchat_154", localize "STR_PC_groupchat_155", localize "STR_PC_groupchat_156", localize "STR_PC_groupchat_157", localize "STR_PC_groupchat_158", localize "STR_PC_groupchat_159", localize "STR_PC_groupchat_160", localize "STR_PC_groupchat_161", localize "STR_PC_groupchat_162", localize "STR_PC_groupchat_163", localize "STR_PC_groupchat_164", localize "STR_PC_groupchat_165", localize "STR_PC_groupchat_166" ] select _sector; };
  14. R3vo

    Query about layers

    Also read https://community.bistudio.com/wiki/Eden_Editor:_Layer.
  15. R3vo

    AllControls check

    Exactly how you did it but as 7erra said, lbText does only return the text of a listbox. So you need to first get the type of the control with ctrlType and then get the text with the appropriate command e.g tvText, lbText, lnbText etc. In addition to that, you need to also go deeper if ctrlType return a controlsGroup because allControls will not return these.
×