Jump to content
  • 0

Animated Ikea truck? Moving marked patrols?


DynaMike

Question

I would like a MOVING truck (maybe with a live updated marker) to move from 1 position to another on the map.  

The objective would be to intercept and shoot the driver (and co-driver) and then grabbing the vehicle with the loot INSIDE.

If vehicle gets destroyed then some loot will spawn around like a chopper crash.

 

I like the idea of a moving marker (saw it in Wasteland) but it could also just be start and end position shown.

 

Both start position and end position should be randomly set.  So players are able to chase the vehicle but as such not knowing where the mission starts.

 

 

I have tried editing the existing animated crash spawner but had no luck.  Anyone willing or wanting to take on this task?  Creating this would result in unlimited variations for server owners.  They will be able to create missions based on this and activating their players even more.  ATV/MC patrols getting chased.  Policecar on its way to apprehend criminals - intercept and protect your friends = loot

 

The possibilities are MANY.

 

Should be run as an Epoch event.

Link to comment
Share on other sites

Recommended Posts

  • 0

Here is the other part

 

// =========================================================================================================
//  Convoy  control
//  Version: 1.6
//  Author: DTM2801
// =========================================================================================================
// - to tweak the behaviour change the distance (example: _dist > 80) or forcespeed (example: forceSpeed 0).
//
// example using only controlscript with vehicles and named on the map:     
// veh1:    first vehicle nothing
// veh2:    null = [veh2,veh1,false] execVM "convoy_control.sqf";
// veh3:     null = [veh3,veh2,false] execVM "convoy_control.sqf";
// veh4:    null = [veh4,veh3,false] execVM "convoy_control.sqf";
// and so on
// to enable/disable debug change option 3 to true/false
// =========================================================================================================

private ["_units", "_convoy1", "_convoy2", "_debug", "_unit1", "_unit2", "_dist"];

_convoy1 = _this select 0;
_convoy2 = _this select 1;
_debug = _this select 2;

_units = [];
_units = _units + [_convoy1, _convoy2];
_unit1 = _units select 0;
_unit2 = _units select 1;

while {alive _unit1 && alive _unit2} do {
    _dist = (_unit1 distance _unit2);
    if (_dist > 50) then {_unit2 forceSpeed 0; if (_debug) then {hintsilent format ["%1 waiting for %2",_unit2,_unit1]};};
    if (_dist < 45) then {_unit2 forceSpeed 2; if (_debug) then {hintsilent format ["%1 front slowding down 2",_unit2]};};
    if (_dist < 40) then {_unit2 forceSpeed 5; if (_debug) then {hintsilent format ["%1 front slowing down 4",_unit2]};};
    // preffered distance
    if (_dist < 35) then {_unit1 forceSpeed 8;_unit2 forceSpeed 8; if (_debug) then {hintsilent format ["%1 & %2 \nin formation",_unit1,_unit2]};};
    if (_dist < 30) then {_unit1 forceSpeed 8;_unit2 forceSpeed 8; if (_debug) then {hintsilent format ["%1 & %2 \nin formation",_unit1,_unit2]};};
    // ----------------------------------
    if (_dist < 25) then {_unit1 forceSpeed 5; if (_debug) then {hintsilent format ["%1 back slowing down 4",_unit1]};};
    if (_dist < 20) then {_unit1 forceSpeed 2; if (_debug) then {hintsilent format ["%1 back slowing down 2",_unit1]};};
    if (_dist < 15) then {_unit1 forceSpeed 0; if (_debug) then {hintsilent format ["%1 waiting for %2 to move",_unit1,_unit2]};};

    if (_debug) then {_unit1 sideChat format ["dist %1, to front %2",_dist,_unit2];};
    sleep .5;
    };
    //failsafe
    if (alive _unit1) then {_unit1 forcespeed -1; if (_debug) then {hintsilent format ["%1 gone, %2 without control",_unit1,_unit2]};};
    if (alive _unit2) then {_unit2 forcespeed -1; if (_debug) then {hintsilent format ["%1 gone, %2 without control",_unit2,_unit1]};};

Link to comment
Share on other sites

  • 0

And they used the mission file

 

version=11;
class Mission
{
    addOns[]=
    {
        "chernarus",
        "CAWheeled",
        "ca_modules_functions",
        "CATracked",
        "CAWheeled2_MTVR",
        "cacharacters2"
    };
    addOnsAuto[]=
    {
        "CAWheeled",
        "ca_modules_functions",
        "CATracked",
        "CAWheeled2_MTVR",
        "cacharacters2",
        "chernarus"
    };
    randomSeed=7360721;
    class Intel
    {
        briefingName="Convoy";
        resistanceWest=0;
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
    class Groups
    {
        items=10;
        class Item0
        {
            side="WEST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={3184.1887,173.20471,3528.7466};
                    azimut=-135.79572;
                    special="NONE";
                    id=0;
                    side="WEST";
                    vehicle="HMMWV_M2";
                    player="PLAYER DRIVER";
                    leader=1;
                    skill=0.60000002;
                };
            };
        };
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={3172.8208,168.67093,3504.052};
                    azimut=275.87723;
                    id=1;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    text="convoy0";
                    init="null= [this,west,[""convoywp1"",""convoywp2"",""convoywp3""],false,5,7,[],[],false,false]execvm ""convoy.sqf"";";
                };
            };
        };
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={3077.4749,193.96417,3642.7725};
                    id=2;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    skill=0.60000002;
                };
            };
        };
        class Item3
        {
            side="WEST";
            class Vehicles
            {
                items=3;
                class Item0
                {
                    position[]={2764.3247,134.52821,3126.3032};
                    azimut=55;
                    special="NONE";
                    id=3;
                    side="WEST";
                    vehicle="M1A1";
                    leader=1;
                    skill=0.60000002;
                    text="t1";
                };
                class Item1
                {
                    position[]={2750.7012,134.34294,3118.5991};
                    azimut=55;
                    special="NONE";
                    id=4;
                    side="WEST";
                    vehicle="M1A1";
                    skill=0.60000002;
                    text="t2";
                    init="null = [t2,t1,false] execVM ""convoy_control.sqf"";";
                };
                class Item2
                {
                    position[]={2735.3718,133.94231,3105.8203};
                    azimut=55;
                    special="NONE";
                    id=5;
                    side="WEST";
                    vehicle="M1A1";
                    skill=0.60000002;
                    text="t3";
                    init="null = [t3,t2,false] execVM ""convoy_control.sqf"";";
                };
            };
            class Waypoints
            {
                items=4;
                class Item0
                {
                    position[]={3184.564,164.05244,3475.6018};
                    formation="FILE";
                    combat="SAFE";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item1
                {
                    position[]={2613.9197,143.94092,3464.0313};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item2
                {
                    position[]={2662.1809,127.31651,3025.7566};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item3
                {
                    position[]={3157.5928,162.15416,3458.1865};
                    type="CYCLE";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
            };
        };
        class Item4
        {
            side="WEST";
            class Vehicles
            {
                items=3;
                class Item0
                {
                    position[]={2570.8608,142.86151,3510.1997};
                    azimut=333.85367;
                    special="NONE";
                    id=6;
                    side="WEST";
                    vehicle="HMMWV_M2";
                    leader=1;
                    skill=0.60000002;
                    text="veh1";
                };
                class Item1
                {
                    position[]={2587.8293,143.12071,3472.709};
                    azimut=-23.199932;
                    special="NONE";
                    id=7;
                    side="WEST";
                    vehicle="MTVR";
                    skill=0.60000002;
                    text="veh3";
                };
                class Item2
                {
                    position[]={2579.5103,143.08575,3491.699};
                    azimut=328.40665;
                    special="NONE";
                    id=8;
                    side="WEST";
                    vehicle="HMMWV_M2";
                    skill=0.60000002;
                    text="veh2";
                };
            };
        };
        class Item5
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={2652.2034,128.2709,3050.7959};
                    azimut=-9.6119499;
                    id=9;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    text="convoy1";
                    init="null= [this,west,[""convoywp1"",""convoywp2"",""convoywp3""],false,5,7,[""HMMWV_M2"",""MTVR"",""HMMWV_M2""],[],false,false]execvm ""convoy.sqf"";";
                };
            };
        };
        class Item6
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={2605.1902,145.16646,3529.5325};
                    azimut=3.4605601;
                    id=10;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    text="convoy2";
                    init="null= [this,west,[""convoywp1"",""convoywp2"",""convoywp3""],true,5,7,[],[veh1,veh2,veh3],false,false]execvm ""convoy.sqf"";";
                    description="case1";
                };
            };
        };
        class Item7
        {
            side="WEST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={2680.1721,132.04553,3109.7207};
                    azimut=-135.79601;
                    special="NONE";
                    id=11;
                    side="WEST";
                    vehicle="HMMWV_M2";
                    player="PLAY D";
                    leader=1;
                    skill=0.60000002;
                };
            };
        };
        class Item8
        {
            side="WEST";
            class Vehicles
            {
                items=9;
                class Item0
                {
                    position[]={2598.5569,143.11949,3494.2102};
                    azimut=53.830658;
                    id=12;
                    side="WEST";
                    vehicle="USMC_Soldier_SL";
                    leader=1;
                    rank="LIEUTENANT";
                    skill=0.59999996;
                    init="{_x moveincargo veh3} foreach units this";
                };
                class Item1
                {
                    position[]={2596.291,143.12643,3488.8369};
                    azimut=53.830658;
                    id=13;
                    side="WEST";
                    vehicle="USMC_Soldier_TL";
                    rank="SERGEANT";
                    skill=0.46666664;
                };
                class Item2
                {
                    position[]={2597.4707,143.13,3487.2227};
                    azimut=53.830658;
                    id=14;
                    side="WEST";
                    vehicle="USMC_Soldier_AR";
                    rank="CORPORAL";
                    skill=0.33333331;
                };
                class Item3
                {
                    position[]={2598.6516,143.13,3485.6079};
                    azimut=53.830658;
                    id=15;
                    side="WEST";
                    vehicle="USMC_Soldier_LAT";
                    rank="CORPORAL";
                    skill=0.33333331;
                };
                class Item4
                {
                    position[]={2599.8323,150.21602,3483.9937};
                    azimut=53.830658;
                    id=16;
                    side="WEST";
                    vehicle="USMC_Soldier";
                    skill=0.2;
                };
                class Item5
                {
                    position[]={2601.6028,149.75583,3481.571};
                    azimut=53.830658;
                    id=17;
                    side="WEST";
                    vehicle="USMC_Soldier_TL";
                    rank="SERGEANT";
                    skill=0.46666664;
                };
                class Item6
                {
                    position[]={2602.783,149.33174,3479.9575};
                    azimut=53.830658;
                    id=18;
                    side="WEST";
                    vehicle="USMC_Soldier_AR";
                    rank="CORPORAL";
                    skill=0.33333331;
                };
                class Item7
                {
                    position[]={2603.9634,148.90765,3478.343};
                    azimut=53.830658;
                    id=19;
                    side="WEST";
                    vehicle="USMC_Soldier_LAT";
                    rank="CORPORAL";
                    skill=0.33333331;
                };
                class Item8
                {
                    position[]={2605.1433,148.48375,3476.7278};
                    azimut=53.830658;
                    id=20;
                    side="WEST";
                    vehicle="USMC_Soldier";
                    skill=0.2;
                };
            };
        };
        class Item9
        {
            side="WEST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={2599.8584,144.38396,3513.407};
                    azimut=-135.79601;
                    special="NONE";
                    id=21;
                    side="WEST";
                    vehicle="HMMWV_M2";
                    player="PLAY D";
                    leader=1;
                    skill=0.60000002;
                };
            };
        };
    };
    class Markers
    {
        items=4;
        class Item0
        {
            position[]={1928.7113,6.0567694,2247.9927};
            name="convoywp2";
            text="2nd waypoint";
            type="Empty";
            angle=179.289;
        };
        class Item1
        {
            position[]={3624.3196,6.9224267,2469.7615};
            name="convoywp3";
            text="3rd waypoint";
            type="Empty";
            angle=179.289;
        };
        class Item2
        {
            position[]={1707.569,144.01352,3847.6028};
            name="convoywp1";
            text="1st waypoint";
            type="Empty";
            angle=179.289;
        };
        class Item3
        {
            position[]={2566.4434,133.81084,3263.0781};
            name="convoywp4";
            text="4th waypoint";
            type="Empty";
            angle=179.289;
        };
    };
};
class Intro
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=10843271;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroWin
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4431461;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroLoose
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=7880097;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
 

Link to comment
Share on other sites

  • 0

hi schwede, unfortunately no luck on the latest process.

 

rpt-log:

20:56:04 "WAI: Spawned a group of 4 AI (Hero) at [7487.78,7913.18,0]"
20:56:04 "Schwedes_WAI: _unitGroup: R 1-1-D"
20:56:05 "WAI: Spawned a group of 4 AI (Hero) at [7487.78,7913.18,0]"
20:56:05 "Schwedes_WAI: _unitGroup: R 1-1-E"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:07 "WAI: Spawned in 1 M2StaticMG"
20:56:07 "WAI: Paradrop waiting for player"
20:56:07 Error in expression <604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error position: <650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error Fehlende ]
20:56:07 File z\addons\dayz_server\WAI\missions\hero\movingconvoy.sqf, line 20
20:56:07 Error in expression <604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error position: <650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error Fehlende ]
20:56:07 File z\addons\dayz_server\WAI\missions\hero\movingconvoy.sqf, line 20

i doublechecked line 20, in my opinion there's no bracket "]" missing.

(line 20: _waypoint_data = [ [8586.8,11604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0] ]; //some koordinates)

 

any ideas on that?

Link to comment
Share on other sites

  • 0

hi schwede, unfortunately no luck on the latest process.

 

rpt-log:

20:56:04 "WAI: Spawned a group of 4 AI (Hero) at [7487.78,7913.18,0]"
20:56:04 "Schwedes_WAI: _unitGroup: R 1-1-D"
20:56:05 "WAI: Spawned a group of 4 AI (Hero) at [7487.78,7913.18,0]"
20:56:05 "Schwedes_WAI: _unitGroup: R 1-1-E"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:06 "WAI: Spawned in 1 M2StaticMG"
20:56:07 "WAI: Spawned in 1 M2StaticMG"
20:56:07 "WAI: Paradrop waiting for player"
20:56:07 Error in expression <604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error position: <650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error Fehlende ]
20:56:07 File z\addons\dayz_server\WAI\missions\hero\movingconvoy.sqf, line 20
20:56:07 Error in expression <604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error position: <650.07,0]]; 

_num_waypoints 	= 5; 
_uni>
20:56:07   Error Fehlende ]
20:56:07 File z\addons\dayz_server\WAI\missions\hero\movingconvoy.sqf, line 20

i doublechecked line 20, in my opinion there's no bracket "]" missing.

(line 20: _waypoint_data = [ [8586.8,11604.2,0],[4490.38,8301.01,0],[6651.26,2 650.07,0] ]; //some koordinates)

 

any ideas on that?

maybe the fact you have a space in the final co-ords?

Link to comment
Share on other sites

  • 0

try spawn a unit 200m in front of convoy and give him a marker to go to convoy and make a trigger event to start convoy when the unit reaches 100m from convoy, trigger move to waypoint 

 

Move waypoint to activate through trigger?

Commands - Init/Trigger/Activation

 

ARMA 2 editor tutorial waypoints and triggers part 1

ARMA 3 Editor - 29. How to activate a waypoint using a trigger

 

i know this last 1 is arma3 but they are very similar

Link to comment
Share on other sites

  • 0

what is wrong with you?

just sit there and wait till we got it or try it yourself!

We do not get paid for this, so do not expect it to get it solved in a couple of hours

Well said mate.

 

I'm sure if/when you do release this that it will be amazing, and wanted by lots of server owners.

 

Thanks to you everybody who writes stuff and releases it on here, without you guys 99% of servers would have self bb and that's about it.

Link to comment
Share on other sites

  • 0

what is wrong with you?

just sit there and wait till we got it or try it yourself!

We do not get paid for this, so do not expect it to get it solved in a couple of hours

Im impatient and meant no insult.

 

firstly, I know exactly how much hard work this is and appreciate the work scripters do, how ever I mentioned that after nearly a week of no updates and the only update that were there were some reposts of old work.

 

secondly I really appreciate how much hard work you guys do on keeping this mod up and running...I'm just a little impatient to get it on my server, this coupled with my wandering AI would rock.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...