mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update fnc_createCasing.sqf
This commit is contained in:
parent
3798c0128c
commit
acaff58a14
@ -35,7 +35,7 @@ private _modelPath = GVAR(cachedCasings) getOrDefaultCall [_ammo, {
|
||||
// use casing's default model
|
||||
private _model = getText (_cartridgeConfig >> "model");
|
||||
if ("a3\weapons_f\empty" in toLowerANSI _model) exitWith { "" };
|
||||
|
||||
|
||||
// Add file extension if missing (fileExists needs file extension)
|
||||
if ((_model select [count _model - 4]) != ".p3d") then {
|
||||
_model = _model + ".p3d";
|
||||
@ -68,7 +68,7 @@ private _pos = _unitPos
|
||||
};
|
||||
private _casing = createSimpleObject [_modelPath, _casingPos, true];
|
||||
_casing setDir (random 360);
|
||||
_casing setVectorUp _lisPos select 1;
|
||||
_casing setVectorUp (_lisPos select 1);
|
||||
private _idx = GVAR(casings) pushBack _casing;
|
||||
|
||||
for "_" from 0 to (_idx - GVAR(maxCasings)) do {
|
||||
|
Loading…
Reference in New Issue
Block a user