Help with Airborne ops

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
hasler
Posts: 39
Joined: Mon Jul 31, 2017 8:28 pm

Help with Airborne ops

Post by hasler »

I am trying to drop the 82nd airborne in a scenario I am working on. The problem is I don't see any US paratroopers, or even US infantry available. The only troops I see are a generic 7.62 troops in 4 man fire teams. Is this correct? I guess I could try to do a Lua creation, but I would prefer to do a real cargo drop. Any insight would be appreciated.
User avatar
Gunner98
Posts: 5881
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: Help with Airborne ops

Post by Gunner98 »

If your asking about Database units there are plenty of US infantry units, although no specific US Para units except for some SF types.

If your asking about the cargo module, most elements are generic. A Brit 4 man section with an MG has the same capability as a US 4 man section with an MG etc.

Specific equipment are included such as specific AT weapons etc.
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
TyphoonFr
Posts: 153
Joined: Thu Nov 23, 2017 4:27 pm
Location: FRA

RE: Help with Airborne ops

Post by TyphoonFr »

Hi,

An LUA creation makes it possible to transform a generic unit disembarked into a specific unit, or to teleport a specific unit, to the place where the generic unit appeared.

Here is an example to transform different type of unit units disembarked (Mech, Inf, Armored, Arty),

s="GTIA"
local cargo = ScenEdit_UnitX()
local elev = World_GetElevation({latitude=cargo.latitude,longitude=cargo.longitude})

ScenEdit_DeleteUnit({s,name=cargo.name})

if cargo.dbid ==2984 then --a unit Mech Inf becomes a Mech Inf Plt (VBCI)
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2396,
name='92RI',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2990 then --a unit Landed Detachment becomes a Vehicule VBL
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2200,
name='3RICM',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2983 then --a unit Armored Plt Generic becomes a Armored Plt Amx-10RC
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2198,
name='3RICM',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2985 then -- a unit Arty Generic becomes a Arty Bty Caésar
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2401,
name='11RA',
latitude=cargo.latitude,
longitude=cargo.longitude})

end



For example a unit Mech Inf - Generic # 2984 becomes a Mech Inf Plt (VBCI) # 2396

Instead of creating a unit, you can teleport an existing unit to the landing position of the generic unit, changing its position with ScenEdit_SetUnit (unit)
Christophe

To all English teachers of the forum, sorry if English is not my mother language.
hasler
Posts: 39
Joined: Mon Jul 31, 2017 8:28 pm

RE: Help with Airborne ops

Post by hasler »

Thanks, that is a good set of functions to know.
User avatar
tjhkkr
Posts: 2430
Joined: Wed Jun 02, 2010 11:15 pm
Contact:

RE: Help with Airborne ops

Post by tjhkkr »

Thanks TyphoonFR... very useful piece of LUA code.
====
ORIGINAL: TyphoonFr
Hi,

An LUA creation makes it possible to transform a generic unit disembarked into a specific unit, or to teleport a specific unit, to the place where the generic unit appeared.
Here is an example to transform different type of unit units disembarked (Mech, Inf, Armored, Arty),

s="GTIA"
local cargo = ScenEdit_UnitX()
local elev = World_GetElevation({latitude=cargo.latitude,longitude=cargo.longitude})

ScenEdit_DeleteUnit({s,name=cargo.name})

if cargo.dbid ==2984 then --a unit Mech Inf becomes a Mech Inf Plt (VBCI)
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2396,
name='92RI',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2990 then --a unit Landed Detachment becomes a Vehicule VBL
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2200,
name='3RICM',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2983 then --a unit Armored Plt Generic becomes a Armored Plt Amx-10RC
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2198,
name='3RICM',
latitude=cargo.latitude,
longitude=cargo.longitude})

elseif cargo.dbid ==2985 then -- a unit Arty Generic becomes a Arty Bty Caésar
local sgtia = ScenEdit_AddUnit({
side=s,
type='Facility',
dbid=2401,
name='11RA',
latitude=cargo.latitude,
longitude=cargo.longitude})

end


For example a unit Mech Inf - Generic # 2984 becomes a Mech Inf Plt (VBCI) # 2396

Instead of creating a unit, you can teleport an existing unit to the landing position of the generic unit, changing its position with ScenEdit_SetUnit (unit)


Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
Post Reply

Return to “Mods and Scenarios”