Forum Jump :

Author Message

Maffa  



Posts: 2
Rank:


Level: Member

Country: it
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2015-04-21 12:15        
     
Hello everybody!

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

Any ideas?



__________________________

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;
deletevehicle _Leospawn;
[_Leospawnpoint,_Leodir,"ibr_leo1a5gal", west] call BIS_fnc_spawnVehicle;

and place
res=[this]execVM"CreateLeo.sqf";
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...

This post was edited by Maffa (2015-04-22 08:19, 966 days ago)


Author Message

Joe98  



Posts: 12
Rank:


Level: Member

Country: au
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2015-04-23 00:39        
     
Create a trigger so the Leopard appears on the waters edge when the trigger fires.

.
.


Advertisement


Author Message

Maffa  



Posts: 2
Rank:


Level: Member

Country: it
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2015-04-23 08:45        
     
I solved it with with script

waituntil {((getposasl _leospawn) select 2)>3};
sleep 5;
{deletevehicle _x} foreach crew _leospawn;
sleep 5;
_Leodir = getdir _leospawn; 
_Leospawnpoint = getpos _leospawn;
deletevehicle _leospawn;
[_Leospawnpoint, _leodir,"ibr_leo1a5gal", west] call BIS_fnc_spawnVehicle;