Jump to content
  • Topics

  • Posts

    • Updated to the workshop just now. V0.0.9 as above
    • They may see about trying that however I will mention that the current settings in their basic.cfg were recommended by the server provider (armahosts) from someone there who said they frequently run ~100 player operations.
    • Hi !
      Today I propose to be able to have weekly challenges around 10 per week which would be interesting, more difficult and longer than daily challenges which can be completed for a week and which could bring better rewards.
      What do you think?   
    • Ok, found it.

      But, so far, it doesn't have any additional addAction as you wished - only the original action from the switch.
        I have several objects "Land_PortableLight_02_single_folded_black_F" attached to a vehicle, as well as a switch box "Land_TransferSwitch_01_F".
      There is also a game logic.
      All of these objects ares synched (right-click => synch): lamps, switch box and logic.
      And this is what's on LOGIC's attributes -> Init:

        [this, vangnamStyle] call BIS_fnc_attachToRelative; // just because the switch box must be attached to the van as well; _objs = synchronizedObjects this; _switch = _objs select{ _x isKindOf "Land_TransferSwitch_01_F" } select 0; _lights = _objs select { (_x isKindOf "Land_PortableLight_02_single_folded_olive_F") || (_x isKindOf "Land_PortableLight_02_single_folded_sand_F") || (_x isKindOf "Land_PortableLight_02_single_folded_black_F") }; TAG_fnc_lightsState = { params[ "_lights", "_lightState" ]; { _x switchLight _lightState; }forEach _lights; }; _switch setVariable[ "LightActionID", _switch addAction[ "SuperLights Off", { params [ "_target", "_caller", "_id", "_args" ]; _args params[ "_lights" ]; _info = if ( _target animationSourcePhase "SwitchPosition" == 0 ) then { [ "OFF", "SuperLights On", 1, 0 ] }else{ [ "ON", "SuperLightsLights Off", 0, 1 ] }; _info params[ "_lightState", "_actionText", "_switchPosition", "_switchLight" ]; _target animateSource[ "SwitchPosition", _switchPosition ]; _target animateSource[ "SwitchLight", _switchLight ]; [ [ _target, _actionText ], { params[ "_target", "_actionText" ]; _target setUserActionText[ _target getVariable "LightActionID", _actionText ] } ] remoteExec[ "BIS_fnc_call", 0, format[ "%1_actionState", _target call BIS_fnc_objectVar ] ]; [ _lights, _lightState ] remoteExec[ "TAG_fnc_lightsState", 0, format[ "%1_lightState", _target call BIS_fnc_objectVar ] ]; }, [ _lights ], 1, true, false ] ];  
    • Man, I have done a very similar thing on those "folded camp lamps" I attached to a helicopter, but it was more than a year ago.
      I will run a better search, but I am sure I got it from a topis here in forums, most likely from Larrow, and it also got the "synch" in editor involved (right-click -> synch).

      Here is one of topics which have also helped me then, but they're using triggers, instead.  
×