Jump to content

Recommended Posts

Posted

hey guys!

is there a script already existing, which lets you respawn the same plane(s) every x minutes, or everytime a trigger condition is fullfilled?

 

i cant write a single line for a script, and i wouldnt even know where to begin with, so i ask for something existing and already working.

 

i would like to build a mission, where AI planes are spawned everytime a player enters a certain trigger area.

 

this would be possible as well with just creating each AI plane, but that would mean hundreds of planes to create in the mission editor, as i would like a online mission where a on going battle takes place for hours.

so to respawn the same plane again and again would make things way more simple and faster to create.

 

or does a trigger function exist which actually makes this possible without having to use a script, and i just overlooked it?

thx in advance

Posted

well, i think im way tooo stupid to achieve this by myself even with the links you posted.

please help.would anybody be so kind, to create a simple mission, with a client set p51, and a FW190 which gets respawned every time the player enters a trigger zone?

i think this way i would be able to comprehend the way its working, and further improve the mission to my/our needs.

thx in advance

Posted (edited)

Hey David,

 

Let's meet up on Merlin's TS, I'll show you how to do it and some other scripts.

 

but just for starters -

1. Take the file Mistv3_1.lua and add it to the initial script option that is in the triggers screen in the mission editor.

2. Make a trigger with any condition you want.

3. In the action section, select 'do script'.

4. For respawning a group again, input -

mist.respawnGroup (string groupName, boolean task)

 

example:

mist.respawnGroup ('FW190')

 

The FW190 is the group name, boolean task is an optional setting to add a task to the group, use this only if you want to change the original task the group has.

Edited by xcom
  • Like 1
Posted

ok im at a loss...

 

i manage to respawn the plane finally but:

 

once the plane respawns, it has a different skin, a different number, plus it ignores all waypoints and just returns to base.

 

also if i place other enemy ai planes in the surrounding, they will as well ignore the respawned plane and rtb also.

 

if i escape the mission, it will crash every time...i seem to have solved this problem, with setting the plane which is to respawn to "late activation" and trigger it with "time more"

DogsofWar.miz

Posted

I took a look at the mission -

 

1. I saw that you put tons of waypoints for the vehicles, you don't need to put so many waypoints for them to go on the road, there's an option to select on-road this way it will automatically go on roads between 2 waypoints (has to be selected "on-road" for the initial and the destination waypoints).

 

2. The AI P-51s that RTB is because they have only 1 waypoint and after they reach that waypoint they rtb unless they get engaged, and as you said the respawned FW-190 does not, it will go back to land.

So if you want the AI P-51s to loiter around the area, you should do in the advanced waypoints option to orbit the area that way they continue to fly around that area until they are forced to land by damage or fuel.

 

3. I don't know why the respawned FW-190D9 goes back to land, it seems that the script you added is fine, you are using MIST3.1, there most be an issue with the MIST scripting engine that doesn't include the task and waypoints back in the respawned unit.

I suggest posting in this thread to get Grimes attention on it -

http://forums.eagle.ru/showthread.php?t=98616&page=31

 

The last point is also relavent for the skin change, I again beleive it's a MIST issue, I didn't notice it happening when I use the DCS scripting engine.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...