Le maximum d'unité simultané est de 64 précisément cela inclus les vehicules.
Sinon pour fais disparaitre et apparaitre des unitée c'est tout simple.
- 1 Dans explorer des entity tu doit crée un nouvelle entityset qui lui ne seras pas exécuter au démarage de la mission. Ne pas oublier de cocher la case exportable.
- 2 Tu doit placer des unité dans l'entityset que tu vien de crée.
- 3 Tu crée un trigger zone ou un autre évent qui délanchera cette commande.
activateEntitySet( setName )
Creates the Entity Set exactly where you placed it in the mission editor. All the unit properties including the entity’s name are kept the same. This can only be activated once at any one time (you can reactivate it if it has been removed from the world). Returns the unique ID of the Entity Set spawned.
setName: Name of the entity set to activate.
---------------------------- Ou encore celle si
spawnEntitySet( setName )
Creates the Entity Set exactly where you placed it in the mission editor. All the unit properties are kept the same except the entity names which are assigned by the engine. This can be triggered as many times as you want, as long as you have enough memory and unit space. However the units will always spawn at exactly the same point. Returns the unique ID of the Entity Set spawned.
setName: The name of the entity set to spawn.
Une fois spawner si vous voulez les retirer vous devez utiliser.
destroyEntitySet( setID )
Despawns the Entity Set with the given ID. If successful has the call-back onDespawnedEntitySet.
setID: The unique ID to identify the entity set to destroy.
------------------------------------------------ Ou encore
despawnEntity( entityName )
Despawns a single Entity with the given name IF AND ONLY IF the entity is a vehicle or character (prevents despawning munitions and scripts etc)
entityName: Name of the entity to despawn.
Voila jespère que cela vas avoir répondu a vos question a ce sujet. Grace a cette technique on peu faire un champ de bataille progressif qui contiendras toujour bon nombre d'unité ennemi sans provoquer de lag.