Jump to content
Sign in to follow this  
lyo0001

Crash landing

Recommended Posts

Hey everyone, I'm trying to make a simple mission where at the start you insert via helo, get dropped off and when the heli takes off and starts going back to base it gets hit by a rocket then crashes.

I'm quite the noob and all I have tried is placing a trigger with "setDammage 0.8" and that does not do it for me because I want the visual effect of the rocket aswell, I also tried placing AA soldiers but I don't know how to make them hold fire and shoot when I want them too.

Any help appreciated, thanks in advance.

Jake.

---------- Post added at 04:51 AM ---------- Previous post was at 04:18 AM ----------

Don't worry I figured out how to do it.:)

Share this post


Link to post
Share on other sites

you might look into setting a waypoint with never fire for the AA, and then set a trigger or a waypoint that the chopper flies through that changes the waypoint the AA guy is at to "open fire". Also you might have to combo that with setDamage to make sure he doesn't get away.

Share this post


Link to post
Share on other sites

You could make a trigger that says:

AAsoldier1 doFire Heli1

With AAsoldier1 being the AAsoldier with a never fire waypoint and Heli 1 the chopper.

Edit:

Or you could Init the AAsoldier with

removeAllWeapons this

and in the trigger you give him a launcher and rocket with

 this addMagazine "Strela"; this addWeapon "Strela";

(leave the " " in place)

Edited by Nicolai

Share this post


Link to post
Share on other sites

What I did was, make a waypoint selecting the option "never fire". Then I made a trigger activated by blufor, with the code

AAsoldier1 doFire Heli1   //just using Nicolai's code as an example 

And I simply made the heli pass through the trigger to activate it, telling the AA men to cease holding fire and let rip on the heli.

---------- Post added at 11:39 AM ---------- Previous post was at 11:25 AM ----------

I don't want to make another thread so here is my other question.

I'm trying to make a sniper scenario, where the USMC visit a village and come under sniper fire by two Taliban snipers, I am using the clocktower script which works well.

The snipers are place up on a mountain about 500m away, the problem is for some reason, even though they aquire the targets they don't fire upon them unless they are shot at or I make them playable and personally adjust their aim to the bunch of targets then they seem to shoot all the targets themselves.

How can I get them to start shooting their targets without me adjusting their aim, or shooting at them because this is suposed to be a ambush sniper attack.

I have tried

sniper doFire soldier

That didn't work so I am looking for a good solution.

Thanks.

Jake.

Edited by lyo0001
Staing why I copied the code

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
Sign in to follow this  

×