Jump to content

Recommended Posts

=NOSIG=Ask
Posted

I've followed the below from the mission builder manual but I can't get it working.

 

Create an Object While a Mission Is Running Do the following:

1. Place an object that you want to spawn in the View Port and make it a linked entity.

2. Specify the object properties (pg. 217) and object advanced properties (pg. 209) for the new object. Clear the "Enabled" check box in the advanced properties.

3. Place a spawner trigger (pg. 282) anywhere, specify the advanced properties, and object link it to the object that you want to spawn.

4. Trigger the spawner trigger with a target link from another MCU or a message link from an object.

 

I also triggered a timer with mission start. Formation, waypoint and proximity with timer.

 

What I want is to fly over the proximity and spawn the plane. It seems to be spawned already. I've set it to German just so I would see it on the map but it never seems to appear.

 

Also providing the mission file. Use the pilot "Svensson" to start in the air.

 

Thanks

Kristian

 

image.thumb.png.8da12a81d7a155e6ae24bcfaaaf09bb5.png

First.zip

=NOSIG=Ask
Posted (edited)

Tried with check zone and report too

image.thumb.png.cef08988bb9b9dabb05200e698ab7e07.png

First_2.zip

Edited by [NOSIG]Ask
AEthelraedUnraed
Posted
4 hours ago, [NOSIG]Ask said:

I've followed the below from the mission builder manual but I can't get it working.

 

Create an Object While a Mission Is Running Do the following:

1. Place an object that you want to spawn in the View Port and make it a linked entity.

2. Specify the object properties (pg. 217) and object advanced properties (pg. 209) for the new object. Clear the "Enabled" check box in the advanced properties.

3. Place a spawner trigger (pg. 282) anywhere, specify the advanced properties, and object link it to the object that you want to spawn.

4. Trigger the spawner trigger with a target link from another MCU or a message link from an object.

 

I also triggered a timer with mission start. Formation, waypoint and proximity with timer.

 

What I want is to fly over the proximity and spawn the plane. It seems to be spawned already. I've set it to German just so I would see it on the map but it never seems to appear.

 

Also providing the mission file. Use the pilot "Svensson" to start in the air.

 

Thanks

Kristian

 

image.thumb.png.8da12a81d7a155e6ae24bcfaaaf09bb5.png

First.zip 18.42 kB · 1 download

A couple of issues:

- The proximity trigger is used to measure distances *between* two objects. You've only linked one (the player) and there are no other objects to measure distance to (yet; they still have to spawn). Use a CheckZone MCU to measure distance from a certain point on the map. 

- With Spawners, the object needs to have Enabled=1. Enabled=0 is for when you use an Activate MCU.

- The waypoint and formation MCUs are already triggered *before* the aircraft is even spawned. They won't work that way. Trigger the timer when you spawn the aircraft, instead of on mission start. 

- Since Spawners don't work with formations, it's no use to have the Formation MCU at all. If you want to spawn a formation, you need to use Activate MCUs.

 

3 hours ago, [NOSIG]Ask said:

Tried with check zone and report too

image.thumb.png.cef08988bb9b9dabb05200e698ab7e07.png

First_2.zip 18.53 kB · 0 downloads

Couple of issues here as well:

- It's hard to see, but the Spawner MCU doesn't seem object-linked to the aircraft?

- As above, there's no need to trigger the AttackArea in mission start. The OnSpawned message will take care of that (it fires as soon as the object has finished spawning).

- Your CheckZone doesn't seem to be object-linked to the player, or are you checking for coalition?

 

For debugging purposes, it's always advisable to add subtitles. Like for the CheckZone, trigger a subtitle saying "CheckZone fired" or something. That way, it's much easier to find out which part of your logic isn't working.

  • Like 1
=NOSIG=Ask
Posted

Thanks. I'll give it a try.

 

Also, great with the "console.log" option. Will make it much easier :)

AEthelraedUnraed
Posted

This is how I would do this. If I want to spawn a single aircraft, I use a Spawner:

spawn_spawner.PNG.5cabafac4fa3fd6132e4e293a3b256ad.PNG

The AI Aircraft uses the OnSpawned message from the Trigger Spawner to the Trigger Waypoint. It isn't quite clear from the image, but the Trigger Spawner is object-linked to the AI Aircraft. The AI Aircraft needs to have Enabled checked. (@JimTM, I think your Mission Editor Manual has it wrong here, in the section quoted by [NOSIG]Ask above. It says you should clear the Enabled checkbox, while in fact you should check it.)

 

If you want to spawn a formation, you have to use a Trigger Activate:

spawn_activate.PNG.95975c132c9a4731eb5d76d77979026c.PNG

The AI Aircraft need to have Enabled unchecked.

Posted (edited)
7 hours ago, AEthelraedUnraed said:

...

The AI Aircraft needs to have Enabled checked. (@JimTM, I think your Mission Editor Manual has it wrong here, in the section quoted by [NOSIG]Ask above. It says you should clear the Enabled checkbox, while in fact you should check it.)

...

 

Actually, I just found out that it makes no difference whether Enabled is checked or cleared; the aircraft is not visible until the spawner trigger fires. However, in the case of the activate trigger, you must clear Enabled to hide the plane until the activate trigger fires.

Edited by JimTM
  • Like 1
AEthelraedUnraed
Posted
On 6/1/2022 at 4:54 PM, JimTM said:

Actually, I just found out that it makes no difference whether Enabled is checked or cleared; the aircraft is not visible until the spawner trigger fires. However, in the case of the activate trigger, you must clear Enabled to hide the plane until the activate trigger fires.

You're correct. I just tested, and both the object that was enabled and the one that wasn't spawned just fine. Must've changed then; I'm almost positive spawners only used to work if the object was enabled.

=NOSIG=Ask
Posted
On 6/1/2022 at 9:48 AM, AEthelraedUnraed said:

This is how I would do this. If I want to spawn a single aircraft, I use a Spawner:

spawn_spawner.PNG.5cabafac4fa3fd6132e4e293a3b256ad.PNG

The AI Aircraft uses the OnSpawned message from the Trigger Spawner to the Trigger Waypoint. It isn't quite clear from the image, but the Trigger Spawner is object-linked to the AI Aircraft. The AI Aircraft needs to have Enabled checked. (@JimTM, I think your Mission Editor Manual has it wrong here, in the section quoted by [NOSIG]Ask above. It says you should clear the Enabled checkbox, while in fact you should check it.)

 

If you want to spawn a formation, you have to use a Trigger Activate:

spawn_activate.PNG.95975c132c9a4731eb5d76d77979026c.PNG

The AI Aircraft need to have Enabled unchecked.

Above and beyond answer as usual. Thanks

=NOSIG=Ask
Posted
On 6/1/2022 at 9:48 AM, AEthelraedUnraed said:

This is how I would do this. If I want to spawn a single aircraft, I use a Spawner:

spawn_spawner.PNG.5cabafac4fa3fd6132e4e293a3b256ad.PNG

The AI Aircraft uses the OnSpawned message from the Trigger Spawner to the Trigger Waypoint. It isn't quite clear from the image, but the Trigger Spawner is object-linked to the AI Aircraft. The AI Aircraft needs to have Enabled checked. (@JimTM, I think your Mission Editor Manual has it wrong here, in the section quoted by [NOSIG]Ask above. It says you should clear the Enabled checkbox, while in fact you should check it.)

 

If you want to spawn a formation, you have to use a Trigger Activate:

spawn_activate.PNG.95975c132c9a4731eb5d76d77979026c.PNG

The AI Aircraft need to have Enabled unchecked.

Above and beyond answer as usual. Thanks

 

How would I get the black background like you have in the screenshot?

AEthelraedUnraed
Posted
24 minutes ago, [NOSIG]Ask said:

How would I get the black background like you have in the screenshot?

Go to top-down 3d view and scroll off the map :)

Posted

... or change the mission time to 02:00 is what i do (or any hour that gives complete darkness)

=NOSIG=Ask
Posted

@AEthelraedUnraed I can't get the Check Zone to trigger. I think I've followed the example above to the letter (I hope). I fly a 109 over the zone but nothing is triggered. Can you see what the problem is?

First_check_zone.zip

Documentation says either object link to the objects triggering or setting plane coallition. Not both. I've tried both. The only subtitle I see is the one right after mission begin. I also checked the "Check Zone Trigger Problems" on page 188.

image.thumb.png.bbaa178cba9aee66f442edce6927b1ed.png

Posted (edited)
6 hours ago, [NOSIG]Ask said:

...

How would I get the black background like you have in the screenshot?

 

Alt+F9:  Hide background (i.e, show black background)

F9 x 2:  Restore background

 

3 hours ago, [NOSIG]Ask said:

@AEthelraedUnraed I can't get the Check Zone to trigger. I think I've followed the example above to the letter (I hope). I fly a 109 over the zone but nothing is triggered. Can you see what the problem is?

...

Documentation says either object link to the objects triggering or setting plane coallition. Not both. I've tried both. The only subtitle I see is the one right after mission begin. I also checked the "Check Zone Trigger Problems" on page 188.

 

 

I tested your mission. The check zone fired and the message showed when I flew into the zone. Are you sure that you entered the zone? Did you miss the message (which is white and lasts only 5 seconds)?

Edited by JimTM
=NOSIG=Ask
Posted

I stared intensely at the screen but if you say it's working I will try and try again...

 

Thanks for testing

=NOSIG=Ask
Posted

Could it simply be that a coop mission has to start from parking or on runway? I was using a plane starting from the air (Svensson) and it won't trigger.

Posted
1 hour ago, [NOSIG]Ask said:

Could it simply be that a coop mission has to start from parking or on runway? I was using a plane starting from the air (Svensson) and it won't trigger.

 

I created a simple Lapino map mission (attached) to test an air start with another coop plane sitting on the ground. The check zone fired so it will detect planes started in the air. I can't see any reason that your mission doesn't work with air starts. The ground starts work fine. Perhaps recreate your mission from scratch, starting with the detection logic to make sure it works properly and then build it up from there.

 

JimTM - Test Check Zone Trigger in Coop - v3.zip

  • Upvote 1
=NOSIG=Ask
Posted

Thanks Jim. I'll try that.

Posted

You're welcome [NOSIG]Ask.  :salute:

  • Thanks 1
Imperator_TFD
Posted
On 6/1/2022 at 5:48 PM, AEthelraedUnraed said:

If you want to spawn a formation, you have to use a Trigger Activate:

 

I think I will die a happy man the day they might fix/change this.

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
×
×
  • Create New...