Fixed some bugs due to function renames... fixed now.

SpawnArray became Array
RouteToZone became TaskRouteToZone
This commit is contained in:
FlightControl 2016-04-02 17:28:27 +02:00
parent c947f34b0d
commit 5f9643b45e
3 changed files with 11 additions and 11 deletions

View File

@ -649,7 +649,7 @@ function CARGO_GROUP:UnLoad( Client, TargetZoneName )
self.CargoGroupName = CargoGroup:GetName() self.CargoGroupName = CargoGroup:GetName()
self:T( 'self.CargoGroupName = ' .. self.CargoGroupName ) self:T( 'self.CargoGroupName = ' .. self.CargoGroupName )
CargoGroup:RouteToZone( ZONE:New( TargetZoneName ), true ) CargoGroup:TaskRouteToZone( ZONE:New( TargetZoneName ), true )
self:StatusUnLoaded() self:StatusUnLoaded()

View File

@ -23,7 +23,7 @@ Group_Vehicle4 = Spawn_Vehicle:Spawn()
Group_Vehicle5 = Spawn_Vehicle:Spawn() Group_Vehicle5 = Spawn_Vehicle:Spawn()
Group_Vehicle6 = Spawn_Vehicle:Spawn() Group_Vehicle6 = Spawn_Vehicle:Spawn()
Group_Vehicle1:RouteToZone( ZONE:New( "Landing Zone" ), true, 40, "Cone" ) Group_Vehicle1:TaskRouteToZone( ZONE:New( "Landing Zone" ), true, 40, "Cone" )
-- Now land the spawned plane on to the Vinson, by copying the route of another object. -- Now land the spawned plane on to the Vinson, by copying the route of another object.
Route_Plane = GROUP:NewFromName( "Spawn Helicopter Route Copy" ):CopyRoute( 1, 0 ) Route_Plane = GROUP:NewFromName( "Spawn Helicopter Route Copy" ):CopyRoute( 1, 0 )
@ -85,7 +85,7 @@ Spawn_Vehicle_Scheduled_CleanUp = SPAWN:New( "Spawn Vehicle Scheduled CleanUp" )
-- Creates arrays of groups ready to be spawned and dynamic spawning of groups from another group. -- Creates arrays of groups ready to be spawned and dynamic spawning of groups from another group.
-- SpawnTestVisible creates an array of 200 groups, every 20 groups with 20 meters space in between, and will activate a group of the array every 10 seconds with a 0.2 time randomization. -- SpawnTestVisible creates an array of 200 groups, every 20 groups with 20 meters space in between, and will activate a group of the array every 10 seconds with a 0.2 time randomization.
SpawnTestVisible = SPAWN:New( "Spawn Vehicle Visible Scheduled" ):Limit( 200, 200 ):SpawnArray( 59, 20, 20, 10 ):SpawnScheduled( 10, 0.2 ) SpawnTestVisible = SPAWN:New( "Spawn Vehicle Visible Scheduled" ):Limit( 200, 200 ):Array( 59, 20, 20, 10 ):SpawnScheduled( 10, 0.2 )
-- Spawn_Templates_Visible contains different templates... -- Spawn_Templates_Visible contains different templates...
Spawn_Templates_Visible = { "Spawn Vehicle Visible Template A", Spawn_Templates_Visible = { "Spawn Vehicle Visible Template A",
@ -106,7 +106,7 @@ Spawn_Templates_Visible = { "Spawn Vehicle Visible Template A",
Spawn_Vehicle_Visible_RandomizeTemplate_Scheduled = SPAWN:New( "Spawn Vehicle Visible RandomizeTemplate Scheduled" ) Spawn_Vehicle_Visible_RandomizeTemplate_Scheduled = SPAWN:New( "Spawn Vehicle Visible RandomizeTemplate Scheduled" )
:Limit( 80, 80 ) :Limit( 80, 80 )
:RandomizeTemplate( Spawn_Templates_Visible ) :RandomizeTemplate( Spawn_Templates_Visible )
:SpawnArray( 49, 20, 8, 8 ) :Array( 49, 20, 8, 8 )
:SpawnScheduled( 10, 0.2 ) :SpawnScheduled( 10, 0.2 )
-- Spawn_Infantry allows to spawn 10 Infantry groups. -- Spawn_Infantry allows to spawn 10 Infantry groups.
@ -116,7 +116,7 @@ Spawn_Infantry = SPAWN:New( "Spawn Infantry" )
-- Spawn_Vehicle_Host reserves 10 vehicle groups, shown within an array arranged by 5 vehicles in a row with a distance of 8 meters, and schedules a vehicle each 10 seconds with a 20% variation. -- Spawn_Vehicle_Host reserves 10 vehicle groups, shown within an array arranged by 5 vehicles in a row with a distance of 8 meters, and schedules a vehicle each 10 seconds with a 20% variation.
Spawn_Vehicle_Host = SPAWN:New( "Spawn Vehicle Host" ) Spawn_Vehicle_Host = SPAWN:New( "Spawn Vehicle Host" )
:Limit( 10, 10 ) :Limit( 10, 10 )
:SpawnArray( 0, 5, 8, 8 ) :Array( 0, 5, 8, 8 )
:SpawnScheduled( 10, 0.2 ) :SpawnScheduled( 10, 0.2 )
-- Spawn_Vehicle_SpawnToZone allows to spawn 10 vehicle groups. -- Spawn_Vehicle_SpawnToZone allows to spawn 10 vehicle groups.