Jump to content

Recommended Posts

I have 2 objectives  I want to create but can't think how.

 

 

I want an area to be cleared of Ravage zombies, however they aren't recognised in the trigger condition of Opfor, Independent, Civilian or BLufor not being present.

How can I do this? Tried using the guarded by blufor but didn't work. the objective was greyed out.

 

 

Another one is I want the player to apporach a Radio and recieve a message that gives an objective/map location. If not I can just link it to intel, but wondered if this was possible.

 

 

 

Thirdly, is it possible to spawn an AA missile to lock onto a heli when it enters a trigger? I want a heli to get shot down every time. I can get some AI to run to the location with AA but they sometimes don't get locked on in time.

 

Share this post


Link to post
Share on other sites
Quote

Another one is I want the player to apporach a Radio and recieve a message that gives an objective/map location. If not I can just link it to intel, but wondered if this was possible.

The condition can be a:

 

NameOfPlayer distance nameOfRadio < 5;

 

for the message there are many ways like simple hint or sideChat or play a sound.

 

Quote

Thirdly, is it possible to spawn an AA missile to lock onto a heli when it enters a trigger? I want a heli to get shot down every time. I can get some AI to run to the location with AA but they sometimes don't get locked on in time.

 

  • Like 1

Share this post


Link to post
Share on other sites
20 hours ago, CHICKENLICKEN said:

Thirdly, is it possible to spawn an AA missile to lock onto a heli when it enters a trigger? I want a heli to get shot down every time. I can get some AI to run to the location with AA but they sometimes don't get locked on in time.

REMEMBER TO PUT THIS WHOLE SCRIPT INTO AN .SQF FILE!

Replace the radio- and playsound commands with whatever you want!

Good luck.

 

/*
    Execute the following script by putting this in trigger init field:
    nul=[huey, shilka] execVM "missile.sqf";

    Replace "huey" with the helicopter name.
    Replace "shilka" with the anti-air unit name.

    Good luck!
*/

_vehicle = _this select 0;
_aa = _this select 1;


_aa reveal _vehicle;

[] spawn {
    while {canMove _vehicle} do {
        playsound "missile_inbound";
        sleep 0.25
    }
};

[] spawn {
    [] spawn {
        1.5 fadeMusic 0;
        sleep 1.5;
        playMusic ["EP1_Track15", 35.8];
        1.5 fadeMusic 1
    };
    _vehicle sideRadio "r01";

    sleep 1;
    
    _aa doTarget _vehicle;
    sleep 2;
    
    null = _aa fireAtTarget [_vehicle];
    [] spawn {
        sleep 3.2;
        _vehicle setHit ["mala vrtule", 1]
    };
    enableRadio FALSE;
};

sleep 3.2;

enableRadio TRUE;

[] spawn {
    sleep 2;
    _vehicle sideRadio "r02";
};

playSound "missile_impact";

addCamShake [20, 0.75, 15];    
"dynamicBlur" ppEffectEnable true;   
"dynamicBlur" ppEffectAdjust [3];   
"dynamicBlur" ppEffectCommit 0;     
"dynamicBlur" ppEffectAdjust [0.0];  
"dynamicBlur" ppEffectCommit 1;  
[] spawn {
    sleep 0.75;
    addCamShake [15, 46, 10]
};

playMusic ["EP1_Track15", 40.5];
0 fadeMusic 1;

_OilS = "#particlesource" createVehicleLocal position _vehicle;
_OilS setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 7, 48 , 1], "", "Billboard", 1, 2, [-0.2, -5.75, 1],
                [0, 0, 0], 0, 0.9, 1, 0, [0.25,1,2,3,4,5],
                [[0, 0, 0, 0],[0, 0, 0, 1],[0.05, 0.05, 0.05, 0.75],[0.1, 0.1, 0.1, 0.5],[0.15, 0.15, 0.15, 0.25],[0.2, 0.2, 0.2, 0]],
                [0.8,0.3,0.25], 0.1, 0.15, "", "", _vehicle, 360];
_OilS setDropInterval 0.05;

!(canMove _vehicle);

sleep 3;

position _vehicle select 2 < 0.3;

sleep 5;

base sideRadio "r03";
deleteVehicle _aa;

Share this post


Link to post
Share on other sites

@Kalle M.

Code tags help. For copying and readability. On mobile devices, you have to manually write "[ code ][/code]" (no space between [ ]) tags though.

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks for replies.

On 2/4/2019 at 3:13 PM, Kalle M. said:

REMEMBER TO PUT THIS WHOLE SCRIPT INTO AN .SQF FILE!

Replace the radio- and playsound commands with whatever you want!

Good luck.

 

/*
    Execute the following script by putting this in trigger init field:
    nul=[huey, shilka] execVM "missile.sqf";

    Replace "huey" with the helicopter name.
    Replace "shilka" with the anti-air unit name.

    Good luck!
*/

_vehicle = _this select 0;
_aa = _this select 1;

 

 

 

I get an error with the above part. It says L:ine2:  error, invalid number in expression. on the vehicle=this select 0 line.

Share this post


Link to post
Share on other sites
On 2/13/2019 at 1:42 PM, CHICKENLICKEN said:

Thanks for replies.

 

 

I get an error with the above part. It says L:ine2:  error, invalid number in expression. on the vehicle=this select 0 line.

Did you keep this:

"REMEMBER TO PUT THIS WHOLE SCRIPT INTO AN .SQF FILE!

Replace the radio- and playsound commands with whatever you want!

Good luck."

inside the .sqf file too? If you did, remove it because it's not marked as comment.

 

Btw, I used this in ArmA 2 so I'm not sure if it works in ArmA 3.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×