mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
WorldPos and Vector Dirs
Update to use getPosATL and Vector Position.
This commit is contained in:
parent
072ef02e77
commit
cccc1f15d7
@ -40,7 +40,7 @@ EPOCH_dbg_saveBaseTemplate = {
|
||||
_staticTraders = [];
|
||||
_middleClass = (typeof MIDDLE);
|
||||
_classes pushBack _middleClass;
|
||||
_range = 200;
|
||||
_range = 400;
|
||||
_array = allMissionObjects "ALL";
|
||||
_newArray = [];
|
||||
|
||||
@ -57,8 +57,8 @@ EPOCH_dbg_saveBaseTemplate = {
|
||||
{
|
||||
if (!(isPlayer _x)) then {
|
||||
_type = typeof _x;
|
||||
_classes pushBack [_type,(MIDDLE worldToModel (getpos _x)),getDir _x];
|
||||
_config_str = _config_str + format[' { "%1", %2, %3, %4 }%5', _type, ((MIDDLE worldToModel (getpos _x))) call EPOCH_dbg_replaceBrackets, getDir _x, !(simulationEnabled _x), if (_forEachIndex isEqualTo _countArray) then {_br} else {("," + _br)}];
|
||||
_classes pushBack [_type,getposATL _x, ([vectorDir _x, vectorUp _x]) call EPOCH_dbg_replaceBrackets];
|
||||
_config_str = _config_str + format[' { "%1", %2, %3, %4 }%5', _type, (getposATL _x) call EPOCH_dbg_replaceBrackets, ([vectorDir _x, vectorUp _x]) call EPOCH_dbg_replaceBrackets, !(simulationEnabled _x), if (_forEachIndex isEqualTo _countArray) then {_br} else {("," + _br)}];
|
||||
|
||||
};
|
||||
} forEach _newArray;
|
||||
@ -72,4 +72,4 @@ EPOCH_dbg_saveBaseTemplate = {
|
||||
_classes
|
||||
}
|
||||
};
|
||||
copyToClipboard (true call EPOCH_dbg_saveBaseTemplate);
|
||||
copyToClipboard (true call EPOCH_dbg_saveBaseTemplate);
|
||||
|
Loading…
Reference in New Issue
Block a user