Jump to content

Recommended Posts

Posted

Simple as the title says. I'm trying to create an triggered action capable of that.

 

I've created a zone "Hostile zone", when a player enters it, AI perform it's first take off and fly to WP1 and orbit it, then enable search mode, ROE to free etc... If player bail out, plane keeps orbit or if in combat change ROE to Hold, to not engage player outside area. 'Till there its all ok. But when AI bingo its fuel, it flyes RTB and don't take off again. I want a unit patroling 24/7 the zone, this is the question.

 

I've tryed lots of methods, but nothing seems to work.

Who cares...

Posted (edited)

Check the moose framework.

 

The syntax to accomplish this dynamic is as follows:

local SpawnAirPlane = SPAWN:New( "Airplane Template" ):Repeat():Spawn()

And you're done. The "Airplane Template" is an airplane in the mission editor, with late activation switched on.

 

When this code executes, SpawnAirPlane will contain a new instance of a GROUP object that you can use to reference the spawned airplane.

The spawned airplane will have a name "Airplane Template#001", but you can change that name if you define an alias using the NewWithAlias function:

 

local SpawnAirPlane = SPAWN:NewWithAlias( "Airplane Template", "Toyplane" ):Repeat():Spawn()

Now the SpawnAirPlane will have a GROUP instance containing the name Toyplane#001.

 

The plane should depart from an airbase, and the landing point should be at the same airbase. When the plane lands, it will respawn automatically until the plane is damaged.

 

You can embed the following lua file in your mission to have the SPAWN class at your disposal:

 

https://github.com/FlightControl-Master/MOOSE/blob/master/Embedded/Moose_Embedded.lua

 

You can find a training video on spawning objects here (there will be a part 2 soon with more complex spawning functions explained, like the respawn):

 

https://www.youtube.com/channel/UCjr...oWsG4SpS8i79Qg

 

FC

Edited by FlightControl

[TABLE][sIGPIC][/sIGPIC]|

[/TABLE]

Posted

Im not sure... I'm not familliarized with scripting, I have all my mission scrpted in MIST, does it work with'em? or is a new platafform. Maybe i'm talking bulshit. I mean, do i have to delete all my "Do scripts" fields to work with MOOSE?

Who cares...

  • Recently Browsing   0 members

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