View Single Post
Old 04-19-07, 05:05 AM   #8
Binky1st
Bosun
 
Join Date: Feb 2007
Location: UK
Posts: 65
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Egan
Some useful information posted by ACsoft on the Sh3 mission editors forum. I thought I would repost it here as it is still relevent:


Quote:
Yes, you can "trigger" spawn of units or groups

Here is a pratical example:

Create a test mission, let say to date 1.9.1942

In front of your submarine close to it (1 km), create a small zone you may name, for example, "SpawnMyUnit".

Now, create the unit "MyUnit" to be triggered WITH AN ENTRY DATE IN THE FUTURE, let say 30.9.1942 AND AT A DISTANCE OF MINIMUM 25 TO 30 KM OF THE POSITION YOUR SUBMARINE WILL BE, WHEN ENTERING INTO THE ZONE.

Now, create a trigger "MyTrigger" of type "Reach Zone" using zone "SpawnMyUnit".

Finally, create an Event of type "Update instance", option "Spawn", instance name "MyUnit" and triggered by "MyTrigger".

If you want to check it work, you have a problem, because to found and survey a precise location at about 25 to 30 km of the submarine is not easy, especially with an invisible unit !!! So do the following:

Create a chain of small fishing boat going to the position of your "MyUnit", with the last fishing boat close to your unit.

Now, run your test mission, follow your chain of fishing boat with external free camera, start your submarine full ahead and wait. You will see that your unit will spawn, when the submarine reach the zone. If not, your unit is probably too close.

You might improve this test by also creating a message Event, triggered by "MyTrigger", so you will know when zone is reached.

In this example, we use a "Reach Zone Trigger" to trigger the spawn, but of course any other type of trigger will also do the job, AS LONG AS THE DISTANCE BETWEEN YOUR SUB AND THE UNIT IS FAR ENOUGH, WHEN THE TRIGGER TURN ON.

Hope this help,
Well, I've been having real problems getting 'Update instance' to work. Sometimes it has and others have been lessons in frustration. My current test set up is a Japanese search plane to spawn after I'd destroyed a Small freighter. I adjusted the Entry date (in the unit properties,) to about 20 days after the mission was set to start and moved the aircraft to 36km or so away from the Maru.

And it worked!

Normally the aircraft would spawn at the start of the mission and I'd see it after 6 - 8 minutes or so regardless of whether I'd sunk the Maru or not. This time I gave it a full 20 mins before I attacked and there was no sighn of the aircraft. I sank the boat and after a couple of minutes - there seems to be a stock delay of about 2 minutes between triggers firing and events taking place - it's been the same in all mission I've made. - I got the shout that the aircraft had been picked up on radar!

I don't know how much the distance influences it - I suspect it might be more to do with setting up the entry daye so that it cannot be physically present in the game world until triggered that does the magic.

This is good news, though, as I was beginning to suspect the whole thing was borked. I'm looking forward to trying it with random groups as well.
That looks like the info Bill needed.
Binky1st is offline   Reply With Quote