OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Andre1983 on 14 Dec 2007, 22:45:33

Title: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Andre1983 on 14 Dec 2007, 22:45:33
Hi to all!
Maybe some of you know that i (we) am working on a WW2 mod called Invasion of Holland.

I am experimenting with the German(Para's) Fallschirmjager of Atstwalkers and a Junkers 52.
I have a paradrop script.

What is the idea?
Like in "real" the Fallschirmjagers jumped without weapons.
And put in the INIT-line removeallweapons this; Unitsname moveincargo JU52;

they jumpt out when the Ju52 past a trigger with the paradrop script.

Land and the Idea is that they take weapons of the drop-conatiners and move on to the objectives.
Here we go..... >:(

http://www.ofpec.com/forum/index.php?topic=5836.0 (http://www.ofpec.com/forum/index.php?topic=5836.0)
i don't get this working

And i am looking for a "Ammo" paradrop script.. that a Ju52 drops ammo containers.

I need some scripts and triggers to get this working

- a trigger which checks if the unit(s) are on ground and no more in the parachute
- a script which makes the unit move towards the crate(s) and take the weapon/ammo out of it

Who can help me?
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: bedges on 15 Dec 2007, 01:15:29
i can help you, and you can help you too.

ammo crate paradrop scripts (http://www.ofpec.com/ed_depot/index.php?action=list&game=OFP&type=sc&cat=ve)...

sample conditions for "if the unit(s) are on ground and no more in the parachute":

Code: [Select]
?(vehicle unit_name==unit_name) && (getpos unit_name select 2<=2) - 1 unit

Quote
({?vehicle _x==_x} foreach units group_name) && ({getpos _x select 2<=2} foreach units group_name)
- 1 group


Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Andre1983 on 16 Dec 2007, 15:15:31
Hi
well i tried some scripts but it is not what i am looking for.( it IS very close) (1 plane drops 1 ammo-conatiner)
i want to drop more then 1 ammo-container. 1 plane should drops 4!
http://nl.youtube.com/watch?v=rWGL2RKrn5I

i also don't get the cargodrop script working of the WW2EC C47-addon.

What is the idea:
An Airplane (Ju-52) with drop-containers inside.
will past a waypoint or trigger and drops out the cargo on a parachute.
http://ofp.gamepark.cz/index.php?showthis=9696
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Mr.Peanut on 18 Dec 2007, 15:47:00
Look here (http://www.ofpec.com/forum/index.php?topic=28392.0) for some scripts I wrote for equipment airdrops. Of course, I never got around to writing documentation because I am a lazy shit! I did however include a demo mission from which you can find your answer. Remember that ammo crates are STATIC objects, so make sure to use the code I provided for STATICs.

Is this for an SP or an MP mission?
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Andre1983 on 19 Dec 2007, 12:59:46
Hi to all
Well W0lle of the Bis-forum also tried to help me.
Look @ the zip file.
it needs the JU-52 plane of trenchfeet
ftp://www.ofpr.info/ofpd/unofaddons2/Ju52.exe

Well it is a start mamybe someone can update it.
@Mr.Peanut
It will mostly SP.
and i tried your script well the idea should be that the ammo crates are inside the plane.

Kind regards André de Jong.


Edit: attachment (paratroopers_new.zip) lost in the crash of 2009 - WEK
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Andre1983 on 12 Jan 2008, 21:11:03
No help??? :dry:

http://nl.youtube.com/watch?v=wsCsETAgNGI (http://nl.youtube.com/watch?v=wsCsETAgNGI)

well like you can see on the youtube movie.
the paratroopers land and pick up the weapons of the ammo crate.

You probelery will say: Well it looks good right?

Well YES and NO... :dunno:

This looks good!

BUT if I put the troops into an airplane and use a paradrop script things go WRONG...

they land and pick up their weapons out of the ground. ???

the Attach demo-mission uses NO special addons.

Please someone take a look @ it.


Edit: attachment (paratroopers.zip) lost in the crash of 2009 - WEK
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: Andre1983 on 13 Jan 2008, 14:34:32
http://nl.youtube.com/watch?v=vNETLbxLrCc

well it is almost done
thank you for your time!
Title: Re: looking for Airborne scripts (pick up weapons @ Ammo crate)
Post by: h- on 13 Jan 2008, 15:57:44
Looks pretty cool, I think  :good:

But please do not post consecutively.
At least a couple of days should pass before 'replying to yourself'. If you have something to add to your previous post modify it instead.