ata_sa Posted September 20, 2024 Posted September 20, 2024 (edited) Hi all, I use the following script to spawn new unit (1 source f14 group name) )ZoneTable = {ZONE:New("Z1"), ZONE:New("Z2")} Spawn_plane = SPAWN: New("f14") :InitLimit ( 3, 3) :InitRandomizeRoute ( 1, 1, 200 ) :InitRandomizeZones ( ZoneTable ) : SpawnScheduled ( 1, .1) the problem is: I use this in a switche condition loop. (when flag on spawn then turn off flag after 3 seconds) When I select item menu it spawns 3 units randomly in zones. BUT ! when I use it again on the next cycle new units spawn but old ones disappears. How can I write to keep the previous spawns alive ? Edited September 20, 2024 by ata_sa
kira_mikamy Posted October 12, 2024 Posted October 12, 2024 you should have init limit 3, 0 cause 3, 3 means that can be only 3 in the map. or also use without the init limit: SPAWN:NewWithAlias("template_name", "in_game name") instead of SPAWN:New()
Recommended Posts