Merge pull request #2632 from shaji-Dev/master-ng

[FIXED] SPAWN.BeforeTemplateSpawnFunc
This commit is contained in:
Thomas
2026-08-29 12:57:37 +02:00
committed by GitHub
+2 -2
View File
@@ -2011,14 +2011,14 @@ end
-- -- Declare SpawnObject and call a function when a new Group is spawned.
-- local SpawnObject = SPAWN:New( "SpawnObject" )
-- :InitLimit( 2, 10 )
-- :OnBeforeSpawnGroup( function( SpawnTemplate )
-- :OnBeforeTemplateSpawnGroup( function( Spawn, SpawnTemplate, SpawnIndex )
-- Tweaking the template units
-- end
-- )
-- :SpawnScheduled( 300, 0.3 )
--
function SPAWN:OnBeforeTemplateSpawnGroup( BeforeTemplateSpawnFunc )
--self:F( "OnBeforeSpawnGroup" )
--self:F( "OnBeforeTemplateSpawnGroup" )
self.BeforeTemplateSpawnFunc = BeforeTemplateSpawnFunc