Город МОСКОВСКИЙ
00:02:43

Arma3 Garrison In Editor

Аватар
Открытия и открытки
Просмотры:
31
Дата загрузки:
29.10.2024 17:27
Длительность:
00:02:43
Категория:
Лайфстайл

Описание

made a quick method to garrison units in buildings in eden editor

select units
open console: ctrl + D

code is:

_bpos = [];
{_bpos append (_x buildingPos -1)} foreach (nearestObjects [(get3DENSelected "Object" # 0), ["House", "Building"], 50]);
{_num = Random count _bpos;_pos = _bpos deleteat _num; _x set3DENAttribute ["Position", _pos]} foreach (get3DENSelected "Object");
{_x set3DENAttribute ["Init","{doStop _x; _x disableAi 'PATH'} foreach units this"];} foreach (get3DENSelected "group");

works for editor placed buildings too

the value 50 is how far it must scan for buildings from the first unit

for example a large base should have 300 m radius

Рекомендуемые видео