Arma 3
Not enough ratings
Sd.Kfz. 250 with PAK 40 [SPE, Comp]
   
Award
Favorite
Favorited
Unfavorite
Data Type: Composition
Composition Type: AntiTank
Meta: Dependency
File Size
Posted
14.202 KB
27 Jul @ 6:26am
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
Sd.Kfz. 250 with PAK 40 [SPE, Comp]

Description
A semi-realistic variant of the Sd.Kfz. 250 with a PAK 40 mount. IRL only the PAK38 was mounted on the 250.

The use is intended only for AI in a scenario where the players dont come too close the vehicle, eg a tank mission.
Issues: The viewport of the driver is blocked and the MG34 cant be hidden. Also, the PAK Gunner clips through the vehicle. Thats why the gunner is hidden by default. setturretlimits doesnt work with the PAK, so the barrel can clip through the car.

In an MP scenario, I recommend not using the vehicle init to run the script because for every joining player, the script will run on each machine. Id rather recommend using the initServer.sqf. Not MP tested yet!

Delete the vehicle init code of both the PAK and the vehicle and place the following lines in the initServer.sqf
//VEH = Var of the Halftrack, PAK = Var of the PAK

VEH lockCargo true;
VEH lockTurret [[0], true];

[PAK, VEH] call BIS_fnc_attachToRelative;
{PAK animate [_x, 1]}forEach ["wheel_1_1_Hide","wheel_2_1_Hide","right_stand_Hide","left_stand_Hide"];
1 Comments
Rowdied 23 hours ago 
You should be able to just run the code in the init of the vehicle without scripts and it will work on all dedicated servers