소스 검색

Fix grenade deployable to work anywhere

m3ales 4 년 전
부모
커밋
c15bb6a6bd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      addons - Copy/RD501_Main/XEH_postinit.sqf

+ 2 - 1
addons - Copy/RD501_Main/XEH_postinit.sqf

@@ -104,7 +104,8 @@ call macro_fnc_name(stun);
             {
                 params["_projectile", "_deployable", "_timeToLive"];
                 private _position = getPosATL _projectile;
-                private _deployed = _deployable createVehicle _position;
+                private _deployed = createVehicle [_deployable, _position, [], 0, "CAN_COLLIDE"];
+				_deployed setPosATL _position;
                 deleteVehicle _projectile;
                 if(_timeToLive > 0) then {
                     [