Garbage Collector – Arma 2
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Stub}} | |||
[[Category:ArmA_2:_Editor_Modules]] | [[Category:ArmA_2:_Editor_Modules]] | ||
Line 4: | Line 6: | ||
== Introduction == | == Introduction == | ||
The Garbage Collector (GC) is a module that helps cleaning up dynamically created content. It is used by many other modules, since we cannot indefinately keep adding content while playing a mission. You may ''trash'' certain types of content and the module will remove it from the game in a hopefully smart way (for instance by removing a unit only when it is some distance away). | The '''Garbage Collector''' (GC) is a module that helps cleaning up dynamically created content. It is used by many other modules, since we cannot indefinately keep adding content while playing a mission. You may ''trash'' certain types of content and the module will remove it from the game in a hopefully smart way (for instance by removing a unit only when it is some distance away). | ||
== Initialization== | |||
=== Paths === | |||
Editor: | |||
Modules (F7) > Garbage Collector | |||
Data: | |||
ca\modules\garbage_collector | |||
=== Editor setup === | |||
*Add a unit to the Garbage Collector via | |||
<code>a = [unit] execVM "ca\modules\garbage_collector\data\scripts\trashIt.sqf"</code> | |||
You can refer to the Garbage Collector by BIS_GC. | |||
== Behaviour == | |||
*Garbage Collector will check every 10 seconds if its queue is empty. | |||
*It then processes the queue checking if these units are dead or not, and destroy them if they are. | |||
*It checks if the player's group is not too close (< 500m) before effectively destroy the unit. |
Revision as of 22:01, 3 November 2009
Note: this page is a work-in-progress! More info to follow as soon as possible.
Introduction
The Garbage Collector (GC) is a module that helps cleaning up dynamically created content. It is used by many other modules, since we cannot indefinately keep adding content while playing a mission. You may trash certain types of content and the module will remove it from the game in a hopefully smart way (for instance by removing a unit only when it is some distance away).
Initialization
Paths
Editor:
Modules (F7) > Garbage Collector
Data:
ca\modules\garbage_collector
Editor setup
- Add a unit to the Garbage Collector via
a = [unit] execVM "ca\modules\garbage_collector\data\scripts\trashIt.sqf"
You can refer to the Garbage Collector by BIS_GC.
Behaviour
- Garbage Collector will check every 10 seconds if its queue is empty.
- It then processes the queue checking if these units are dead or not, and destroy them if they are.
- It checks if the player's group is not too close (< 500m) before effectively destroy the unit.