I'm trying to find a way to make a Leopard 1A5 (the one in Duala ibr_leo1a5) land on the shore for an amphibious assault. I've prepared an amph. task force made of M113s and BMD1s (which can float!) but i need to send some punch along. Since the opposition is made of T34s and T55s (sort of poor's war :D, it's set in 3rd world countries in the mid 80s) i thought of pairing the BMD's to T34s, but i couldnt find anything to match T55s but the Leos, but alas they dont float. I dont want to make my clanmates download any addon, so it has to be workarounded by scripting and editing.
So far i thought there could be 4 ways to solve this problem:
a) find an old bluefor armour that can float or parachuted (like the sheridans but we dont have it as addons)
b) find a way to make the leos float (i tried to play with the canfloat reference but when i searched the forums i found it is harder that i thought to be)
c) find a way to make any ship to transform into leos as soon as they hit the beaches
d) find a floating carrier (like the LCMs, LCACs or similar) or a tug/tow
i'm working on a script to turn a vehicle into a leopard. So far i just created a sqf file called createleo.sqf
_Leospawn = _this select 0;
_Leodir = getdir _Leospawn;
_Leospawnpoint = getpos _Leospawn;
[_Leospawnpoint,_Leodir,"ibr_leo1a5gal", west] call BIS_fnc_spawnVehicle;
in the init file of the unit, with in mind to create some kind of relationship between the position and the transformation (a trigger will be likely, since i dont have any idea how to link sea depth and triggers...)
edit: im trying to put a waituntil comand dependent to getposasl of the veihicle but i cant seem to make it work. I also tried with if (getposasl _this > 2) and all combinations with select 2 ( (getposasl _this select 2) >2) and _leospawnpoint etc. to no avail...