mirror of
https://github.com/Ignatz-HeMan/SEM
synced 2024-08-30 16:22:10 +00:00
25 lines
730 B
Plaintext
25 lines
730 B
Plaintext
/* KiloSwiss */
|
|
private ["_obj","_veh","_attachOffset"];
|
|
|
|
_obj = _this select 0;
|
|
_veh = _this select 1;
|
|
|
|
_attachOffset = switch(typeOf _obj)do{
|
|
case "Box_NATO_Wps_F" :{ (switch(typeOf _veh)do{
|
|
case "I_G_Van_01_transport_F" :{[0, -2.8, -.3]};
|
|
case "I_Truck_02_transport_F" :{[0, -3, -.3]};
|
|
case "I_G_Offroad_01_F" :{[0, -2.5, -.1]};
|
|
})
|
|
};
|
|
|
|
case "C_supplyCrate_F" :{ (switch(typeOf _veh)do{
|
|
case "I_G_Van_01_transport_F" :{[0, -2.8, .3]};
|
|
case "I_Truck_02_transport_F" :{[0, -3, .3]};
|
|
case "I_G_Offroad_01_F" :{[0, -2.4, .3]};
|
|
})
|
|
};
|
|
|
|
default{[0,-2.5,0]};
|
|
};
|
|
|
|
_obj attachto [_veh, _attachOffset]; |