mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
fixed documentation in SPAWN
This commit is contained in:
@@ -496,7 +496,12 @@ end
|
|||||||
|
|
||||||
--- Sets the coalition of the spawned group. Note that it might be necessary to also set the country explicitly!
|
--- Sets the coalition of the spawned group. Note that it might be necessary to also set the country explicitly!
|
||||||
-- @param #SPAWN self
|
-- @param #SPAWN self
|
||||||
-- @param DCS#coalition.side Coalition Coalition of the group as number of enumerator, i.e. 0=coaliton.side.NEUTRAL, 1=coaliton.side.RED, 2=coalition.side.BLUE.
|
-- @param DCS#coalition.side Coalition Coalition of the group as number of enumerator:
|
||||||
|
--
|
||||||
|
-- * @{DCS#coaliton.side.NEUTRAL}
|
||||||
|
-- * @{DCS#coaliton.side.RED}
|
||||||
|
-- * @{DCS#coalition.side.BLUE}
|
||||||
|
--
|
||||||
-- @return #SPAWN self
|
-- @return #SPAWN self
|
||||||
function SPAWN:InitCoalition( Coalition )
|
function SPAWN:InitCoalition( Coalition )
|
||||||
self:F({coalition=Coalition})
|
self:F({coalition=Coalition})
|
||||||
@@ -507,9 +512,12 @@ function SPAWN:InitCoalition( Coalition )
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Sets the country of the spawn group. Note that the country determins the coalition of the group depending on which country is defined to be on which side for each specific mission!
|
--- Sets the country of the spawn group. Note that the country determins the coalition of the group depending on which country is defined to be on which side for each specific mission!
|
||||||
-- See https://wiki.hoggitworld.com/view/DCS_enum_country for country enumerators.
|
|
||||||
-- @param #SPAWN self
|
-- @param #SPAWN self
|
||||||
-- @param #DCS.country Country Country id as number or enumerator, e.g. country.id.RUSSIA=0, county.id.USA=2 etc.
|
-- @param #DCS.country Country Country id as number or enumerator:
|
||||||
|
--
|
||||||
|
-- * @{DCS#country.id.RUSSIA}
|
||||||
|
-- * @{DCS#county.id.USA}
|
||||||
|
--
|
||||||
-- @return #SPAWN self
|
-- @return #SPAWN self
|
||||||
function SPAWN:InitCountry( Country )
|
function SPAWN:InitCountry( Country )
|
||||||
self:F( )
|
self:F( )
|
||||||
@@ -757,14 +765,20 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
--TODO: Add example.
|
|
||||||
--- This method provides the functionality to randomize the spawning of the Groups at a given list of zones of different types.
|
--- This method provides the functionality to randomize the spawning of the Groups at a given list of zones of different types.
|
||||||
-- @param #SPAWN self
|
-- @param #SPAWN self
|
||||||
-- @param #table SpawnZoneTable A table with @{Zone} objects. If this table is given, then each spawn will be executed within the given list of @{Zone}s objects.
|
-- @param #table SpawnZoneTable A table with @{Zone} objects. If this table is given, then each spawn will be executed within the given list of @{Zone}s objects.
|
||||||
-- @return #SPAWN
|
-- @return #SPAWN
|
||||||
-- @usage
|
-- @usage
|
||||||
-- -- NATO Tank Platoons invading Gori.
|
-- -- Create a zone table of the 2 zones.
|
||||||
-- -- Choose between 3 different zones for each new SPAWN the Group to be executed, regardless of the zone type.
|
-- ZoneTable = { ZONE:New( "Zone1" ), ZONE:New( "Zone2" ) }
|
||||||
|
--
|
||||||
|
-- Spawn_Vehicle_1 = SPAWN:New( "Spawn Vehicle 1" )
|
||||||
|
-- :InitLimit( 10, 10 )
|
||||||
|
-- :InitRandomizeRoute( 1, 1, 200 )
|
||||||
|
-- :InitRandomizeZones( ZoneTable )
|
||||||
|
-- :SpawnScheduled( 5, .5 )
|
||||||
|
--
|
||||||
function SPAWN:InitRandomizeZones( SpawnZoneTable )
|
function SPAWN:InitRandomizeZones( SpawnZoneTable )
|
||||||
self:F( { self.SpawnTemplatePrefix, SpawnZoneTable } )
|
self:F( { self.SpawnTemplatePrefix, SpawnZoneTable } )
|
||||||
|
|
||||||
@@ -1263,6 +1277,7 @@ end
|
|||||||
-- end
|
-- end
|
||||||
-- )
|
-- )
|
||||||
-- :SpawnScheduled( 300, 0.3 )
|
-- :SpawnScheduled( 300, 0.3 )
|
||||||
|
--
|
||||||
function SPAWN:OnSpawnGroup( SpawnCallBackFunction, ... )
|
function SPAWN:OnSpawnGroup( SpawnCallBackFunction, ... )
|
||||||
self:F( "OnSpawnGroup" )
|
self:F( "OnSpawnGroup" )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user