Jump to content
Dabigoose

Editor enemy pilot doesn't fire and crashes.

Recommended Posts

I have constantly checked and put the skill to maximum and made it so the enemy only has a 20mm.

Location of target: Dents de midi

Location of enemy: 200m south of Chapoi ~400m above ground

The issue is whenever I press 'Play Scenario', the plane just starts firing countermeasures instead of firing at its designated target. and then quickly either crashes into my CIWS or flies off, turns around and crashes into the side of the mountain.

I have made it so both the plane and CIWS doesn't take any damage but just fight and target each other for the whole time so I can make a cinematic.

Here is the used code for the targeting:

(Context: Target is 't6')

null = this spawn {_this dotarget t6; sleep 0.5; while {alive t6 and alive _this} do {sleep 4; gl action ["useweapon",vehicle _this,_this,0]; }};

Share this post


Link to post
Share on other sites

You are using mod(s), at least for map, so difficult to help.

Your code (null = is useless) this spawn {_this dotarget t6; sleep 0.5; while {alive t6 and alive _this} do {sleep 4; gl action ["useweapon",vehicle _this,_this,0]; }};

applies to pilot.

gl must be a game logic (I think it's OK).

0 is the weapon index , and probably refers to the flares. Try 1, 2,...

Not sure the action "useWeapon" is OK for a plane. You can try a simple "destroy" waypoint, and a this reveal [t6,4];  to make sure the pilot is aware of the target.

Share this post


Link to post
Share on other sites

I am unsure of what any of that means but I will try it to make it work!

Thanks!

Reason is I followed a tutorial.

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

×