Author: Nuka
Author Website: http://sealteam10.de

Requirements: Community Base addons

Version: 1.0
Signed: Yes, serverkey included

Short description: The "SeaTec Garbage Collector" module makes it much more easier the management of deletion of dead bodies and vehicles.

Date: 2013-07-31 21:30


Comments: (0)
Rating:



 



Garbage Collector

by
SeaTec


Description:
The "SeaTec Garbage Collector" module makes it much more easier the management of deletion of dead bodies and vehicles.
You only need to add your units you want to delete via function to the module. No more.


Installation:
As we always recommend use modfolders to seperate the custom content from the official game content to prevent problems. For different ways to set up your modfolders and use them please visit our FAQ.

When you are using the Steam version you can find a Steam mod installation and activation FAQ here.


Included files:
stec_garbage_collector.pbo


Usage:
- required Addons: CBA
- variable and functions must executed at the server, because the modules runs server side only

How to add units/vehicle to the module?
You only need to execute this function:
return_value = [unit1, unit2, unit3, vehicle1, vehicle2, ...]call STEC_GC_ADD_OBJECTS;
An array with the units/vehicle you want to add to the module.
See Example please

More Settings:
All displayed values are default values.
MODULE_NAME setVariable["stec_gc_delete_time_units", 300]; //unit killed - wait 300 seconds - delete
MODULE_NAME setVariable["stec_gc_delete_time_vehicle", 500]; //car destroyed/crew dead - wait 500 seconds- delete
MODULE_NAME setVariable["stec_gc_player_range", 1000]; //next human player must be 1000 meter away before the objects deletion

A special for vehicles:
VEHICLE_NAME setVariable ["stec_crew", [crewmember1, crewmember2]]; //VEHICLE_NAME becomes only deleted, when crewmember1 and crewmember2 are dead

Example:
private['_return'];
waitUntil{!isNil "STEC_GC_INITIALIZED"};
_return = [marine1, marine2, lav]call STEC_GC_ADD_OBJECTS;

lav  setVariable ["stec_crew", [marine1, marine2]]; //LAV becomes only deleted, when both marines are dead

/*
     _return select 0 - output: [marine1, marine2]
     _return select 1 - output: [lav]
*/


Forum topic:
- sealteam10.de forums
- BI forums



- Community Base addons




Enable javascript to be able to download from Armaholic please!



Tags: Collect,   Garbage,   Module