Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

136 Excellent


About Schatten

  • Rank
    Master Sergeant

Profile Information

  • Gender
  • Location
    Minsk, Belarus

Recent Profile Visitors

879 profile views
  1. @Nikoladis, this && { (["t1", "t2", "t3", "t4", "t5"] findIf { !([_x] call BIS_fnc_taskCompleted) }) < 0 }
  2. @MexterInfinite, use this condition: this && { (thisList findIf { _x isKindOf "VR_CoverObject_base_F" }) >= 0 }
  3. Schatten

    Troubles with publicVariable..

    @Generalmonimo, when you host the mission in MP mode "server" vars and "client" vars are in the same namespace, so code attached with addPublicVariableEventHandler never fire on your computer, this is why you need to manually call event handler. Yea, my mistake. Try this code: publicVariable "Counter"; if (hasInterface) then { call pubVarEventHandler; };
  4. Schatten

    Troubles with publicVariable..

    @Generalmonimo, your computer is the server too when you host the mission in MP mode, so your code won't work in this case. Use this code instead: if (isServer) then { call pubVarEventHandler; } else { publicVariable "Counter"; };
  5. @ALPHIVE, provide settings of your trigger please.
  6. @zagor64bz, sure, objects (trigger in this case) cannot have names that starts with underscore! Next, set trigger activation to "OPFOR" and type to "NOT PRESENT". Also, delete these lines from your init.sqf file: _trg setTriggerActivation ["EAST", "NOT PRESENT", true]; _trg setTriggerStatements [ "this or { (count thisList) <= (thisTrigger getVariable ['minAliveUnitsNumber', 0]) }", _onActivation, _onDeactivation ];
  7. @zagor64bz, no, that is piece of code that sets up your trigger referenced by _trg, so you need paste it in your script file (e.g., init.sqf). The condition is this or { (count thisList) <= (thisTrigger getVariable ["minAliveUnitsNumber", 0]) } but it wont work on its own as you want.
  8. @zagor64bz, sure, here is example: _unitsNumber = { !(isPlayer _x) and { (side _x) == opfor } and { _x inArea _trg } } count allUnits; _trg setVariable ["minAliveUnitsNumber", ceil (0.1 * _unitsNumber)]; _trg setTriggerActivation ["EAST", "NOT PRESENT", true]; _trg setTriggerStatements [ "this or { (count thisList) <= (thisTrigger getVariable ['minAliveUnitsNumber', 0]) }", _onActivation, _onDeactivation ];
  9. Schatten

    Error Type Any

    fnc_vbuy: if (((lbCurSel _ctrl) <= 20) && (lbCurSel _lb > 15)) then {_cname = gvAPCsNames select (lbCurSel _ctrl)}; Seems like _lb is undefined.
  10. Schatten

    Error Type Any

    Where? Provide full report related to this error from RPT-file please.
  11. Schatten

    Change Text of an edit box

    @Smart Games, use parseNumber command to parse string values got from UI.
  12. Schatten

    CutRsc Problem

    @Smart Games, cutRsc already has local effect, i.e. effect of this command are not broadcasted over the network and remain local to the client the command is executed on.
  13. @Cheitan, check encoding of Stringtable.xml file -- it should be UTF-8 without BOM!
  14. Schatten

    Stop group fleeing

    The code I provided checks the distance between a starting position of a unit and its current position and if this distance is bigger than 75 metres then a unit is ordered to move to a starting position.
  15. Schatten

    Stop group fleeing

    @gc8, https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/blob/0554cc7aabc300d2a92a85df361ad5e1dba140db/server/functions/defendArea.sqf#L78