DeadmenToDown

If you liked this item, please rate it up on Steam Workshop page.

Author: pomikrus

Last revision: 9 Apr, 2023 at 11:12 UTC (2)

File size: 38.91 KB

On Steam Workshop

Description:

Данный мод исправляет положение тел мертвых юнитов над землей после разрушения объектов под ними. Тела больше не висят в воздухе, а опускаются на землю.

Радиус проверки мертвых юнитов 20 метров от центра здания, вышки, объекта над которым умер юнит.

Для запуска мода в простых сценариях и компаниях не нужно вызывать никаких функций, скрипт применяется автоматичски после создания сцены со всеми объектами.
Для более сложных миссий, где юниты создаются динамически при помощи скриптов, применяются следующие функции:

[objNull] call NOVA_fnc_runDTD; //для всех юнитов на карте [_Object] call NOVA_fnc_runDTD; //для одного юнита определенного переменной _Object [_Object] call (uiNamespace getVariable "NOVA_fnc_runDTD"); //расширенный вызов

//=========================================================================================
This mod corrects the position of the bodies of dead units above the ground after the destruction of objects under them. The bodies no longer hang in the air, but fall to the ground.

The radius of checking dead units is 20 meters from the center of the building, tower, object over which the unit died.

To run the mod in simple scenarios and companies, you do not need to call any functions, the script is applied automatically after creating a scene with all objects.
For more complex missions, where units are created dynamically using scripts, the following functions are used:

[objNull] call NOVA_fnc_runDTD; //for all units on the map [_Object] call NOVA_fnc_runDTD; //for one unit defined by the _Object variable [_Object] call (uiNamespace GetVariable "NOVA_fnc_runDTD"); //extended call
Download
Revisions:

Old revisions of this mod are available below. Click the link to download.