Jump to content

JohnKalo

Member
  • Content Count

    1096
  • Joined

  • Last visited

  • Medals

Posts posted by JohnKalo


  1. Maybe a limitSpeed command as an addition will help. But if the acceleration of vehicles are different then every start stop will cause greater distances to occur. In this case maybe the turn you mentioned.

    Quote

    I think after I figure this out, this might be my last convoy ambush or convoy type mission, since it's almost causing me to pull my hair out.

    Lol, I know. If it were not for MP then I would have quit Arma 3 editing years ago. If everything worked as it should it would take about 2-4 hours to make a mission not about 20-40. 

    Quote

    That's how you ambush a convoy. Destroy the lead vehicle, causing the rest to stop and engage.

    What if the first and last vehicle are tanks and you have no anti-armor weapons though. For military vehicles the distance between explosives would be 2+3+2 about 7 meters. Judging from ingame experience. Have not been in the army. Yet....

    • Like 2

  2. Final Update:

     

    Yep it was simple after all. The code should be placed here:


     

    {[_x, "ON"] remoteExec ["switchLight",0,true];} forEach (nearestObjects [_caller, [], DistanceToReach]);
    // Codes can be placed here ;
    _target animateSource ["switchposition",1];
    _target animateSource ["light",0]; 
    _target setDamage 1;

     

    • Like 2
    • Thanks 1

  3. Update again:

     

    Now I saw the code with the colors more clearly I found a solution. Placing the code here seemed to work:


     

    {
    [_x, "ON"] remoteExec ["switchLight",0,true];
    man setDamage 1;
    }
    forEach (nearestObjects [_caller, [], DistanceToReach]);

    Posting it for anybody else wanting to use the switch although that might not be the right position. ForEach does not make much sense. Now tired will do more tests tomorrow ^^^

    • Like 2
    • Thanks 1

  4. Update:

     

    I found the code that I had discovered some time ago on steam forums!!!!!! Here it is:

     

    DistanceToReach = 300;
    this addAction
    [  
        "Turn Off",  
        {  
            params ["_target", "_caller", "_actionId", "_arguments"];  
      {  
      [_x, "OFF"] remoteExec ["switchLight",0,true];  
      } forEach (nearestObjects [_caller, [], DistanceToReach]);
      _target animateSource ["switchposition",1];  
      _target animateSource ["light",0];  
      _target setDamage 1;  
        },  
        [],  
        1.5,  
        true,  
        true,  
        "",  
        "alive _target",  
        3,  
        false,  
        "",  
        ""  
    ];
     
    this addAction  
    [  
        "Turn On",  
        {  
            params ["_target", "_caller", "_actionId", "_arguments"];  
      {  
      [_x, "ON"] remoteExec ["switchLight",0,true];  
      } forEach (nearestObjects [_caller, [], DistanceToReach]);
      _target animateSource ["switchposition",-1];  
      _target animateSource ["light",1];  
      _target setDamage 0;  
        },  
        [],  
        1.5,  
        true,  
        true,  
        "",  
        "!alive _target",  
        3,  
        false,  
        "",  
        ""  
    ];

     

    So now I have the a lever going up and down without really doing anything. Somewhere in there I can call a script. This must be simple but I cannot find it :scratchchin:

    • Like 3

  5. Well to be honest I have never heard of such a thing happening again. For a quick and simple fix you can separate the audio from the video. Make the video without sound and play the audio via a trigger for example. Start the whole scene with:

     

    cutText ["","BLACK OUT"];    // so as for the screen to go black

     

    make the video start to play after some seconds so as for the song to have time to play. If the skipping of scenes happens in the video too you might have to do something more. Take the initial video and cut it into parts. Then use something like:

    ["nameOfVideo1.ogv"] call BIS_fnc_playVideo;
    sleep 10;
    ["nameOfVideo2.ogv"] call BIS_fnc_playVideo;
    sleep 10;

     

    and so on. It is not the best solution but it will work. Maybe it depends on the program you use to edit the video in the first place because you can play parts of videos with only audio.

     

     

    • Like 2
×