Jump to content
Jaki

IFA3 Bagged Sherman Script help

Recommended Posts

Hello there BI community.

 

Recently I came across a handy script which adds sandbags to the M4 Sherman tank. It's mainly for the looks therefore it doesn't help your tank to take more damage. Anyway, problem is that script was made for IFA2 and it kinda works in A3 but when initialised sandbags just hoover above the sherman and it just look ridiculous.I already tried contacting the creator but he retired/hasn't been online since 2015. 

I would much appreciate if someone who is experienced with scripting to check it out and maybe even remake it so it works or at least tell me what am I looking for to make it to work for A3.

 

Spoiler

if (isServer) then {

_tnk = _this select 0;

_bag = "Land_BagFence_Short_F" createVehicle (position _tnk);
_bag attachTo [_tnk,[0,2.6,0.5]]; _bag setVectorUp [0,-1,1];

_bag1 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag1 attachTo [_tnk,[-0.15,2,0.83]]; _bag1 setDir 270;

_bag2 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag2 attachTo [_tnk,[0.15,2.1,0.75]]; _bag2 setDir 270;

_bag3 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag3 attachTo [_tnk,[-1,1.5,1.1]]; _bag3 setDir 270;

_bag4 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag4 attachTo [_tnk,[1,1.5,1.1]]; _bag4 setDir 270;

_bag5 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag5 attachTo [_tnk,[-1.3,1.6,1.1]]; _bag5 setDir 270;

_bag6 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag6 attachTo [_tnk,[1.3,-0.97,1.1]]; _bag6 setDir 90;

_bag7 = "Land_BagFence_Short_F" createVehicle (position _tnk);
_bag7 attachTo [_tnk,[1.3,0.33,1.1]]; _bag7 setDir 90;

_bag8 = "Land_BagFence_Short_F" createVehicle (position _tnk);
_bag8 attachTo [_tnk,[-1.3,0.33,1.1]]; _bag8 setDir 90;

_bag9 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag9 attachTo [_tnk,[1.3,1.6,1.1]]; _bag9 setDir 270;

_bag10 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag10 attachTo [_tnk,[-1.3,-0.97,1.1]]; _bag10 setDir 90;

_bag11 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag11 attachTo [_tnk,[1.05,-1.4,1.1]]; _bag11 setDir 80;

_bag12 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag12 attachTo [_tnk,[-1.05,-1.4,1.1]]; _bag12 setDir 100;

_bag13 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag13 attachTo [_tnk,[0.5,-1.7,1.25]]; _bag13 setDir -20;

_bag14 = "Land_BagFence_End_F" createVehicle (position _tnk);
_bag14 attachTo [_tnk,[-0.83,-1.9,1.2]]; _bag14 setDir 180;

_bag15 = "Land_BagFence_Short_F" createVehicle (position _tnk);
_bag15 attachTo [_tnk,[0,-2.2,1.3]]; _bag15 setVectorUp [0,-1,-0.2];

_bgpak = "LIB_backpack_us_baz" createVehicle (position _tnk);
_bgpak attachTo [_tnk,[1.2,-1.6,0.59]]; _bgpak setDir 270;

_bgpak1 = "LIB_backpack_us_bar" createVehicle (position _tnk);
_bgpak1 attachTo [_tnk,[-1.2,-1.6,0.59]]; _bgpak1 setDir 90;


//Remove these two lines for use in the Iron Fron Standalone version

_brwnMg = "LIB_MG42_Laffete_low" createVehicle (position _tnk); 
_brwnMg attachTo [_tnk ,[0.35,0,2.9]];

};

 

Link to the original thread of Sandbagged Sherman script.

 

Thanks for your time.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×