OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GI-YO on 07 Jun 2004, 12:29:49

Title: Change man in parachute
Post by: GI-YO on 07 Jun 2004, 12:29:49
hey hey, i had a look on search but found no clues so my question is how do you change the unit in the parachute (at the mo its black ops or spetz naz) to a normal m-16 infantry man? or have i missed somwthing simple and you just change something on the unit bit???
thanks in advance

GI-YO

Soldiers, Sailors and Airmen of the Allied Expeditionary Forces: You are about to embark upon the Great Crusade, toward which we have striven these many months. The eyes of the world are upon you. The hopes and prayers of liberty-loving people everywhere march with you. In company with our brave Allies and brothers-in-arms on other Fronts you will bring about the destruction of the German war machine, the elimination of Nazi tyranny over oppressed peoples of Europe, and security for ourselves in a free world.
Your task will not be an easy one. Your enemy is well trained, well equipped and battle-hardened. He will fight savagely.
But this is the year 1944! Much has happened since the Nazi triumphs of 1940-41. The United Nations have inflicted upon the Germans great defeats, in open battle, man-to-man. Our air offensive has seriously reduced their strength in the air and their capacity to wage war on the ground. Our Home Fronts have given us an overwhelming superiority in weapons and munitions of war, and placed at our disposal great reserves of trained fighting men. The tide has turned! The free men of the world are marching together to Victory!
I have full confidence in your courage, devotion to duty and skill in battle. We will accept nothing less than full victory!
Good Luck! And let us all beseech the blessing of Almighty God upon this great and noble undertaking.

Just to show my respect for the D-day veterans.
thankyou
Title: Re:Change man in parachute
Post by: ponq on 07 Jun 2004, 12:48:27
Isn't it something like:

-create a soldier (normal west guy).
-create an empty parachute, named chute1
-in the init field of the sold: this moveindriver chute1
-in the init field of the chute: this flyinheight 100 (or whatever height you wish to use).
Title: Re:Change man in parachute
Post by: GrimMonkey on 07 Jun 2004, 14:51:51
The FlyInHeight command isn't always neccesary. It may be easier just to change the paracutes 'Special' to 'Flying'.


Beware the GrimMonkey
Title: Re:Change man in parachute
Post by: GI-YO on 07 Jun 2004, 14:56:41
Cheers for that lads! Is there anything this forum doesn't know?

GI-YO
Title: Re:Change man in parachute
Post by: dmakatra on 07 Jun 2004, 15:24:31
Nope. Wanna know who shot JFK? ;)

BTW, if you want to set the height to whatever you want you can use this line in the parachutes init field:

this setpos [(getpos this select 0), (getpos this select 1), X]

where X is the height.

:beat: *Gets Shot* :beat:
Title: Re:Change man in parachute
Post by: GrimMonkey on 08 Jun 2004, 14:59:07
this setpos [(getpos this select 0), (getpos this select 1), X]
Or, you could use:
Code: [Select]
This SetPos [GetPos This Select 0, GetPos This Select 1, x]The Parentheses aren't really necessary.


Beware the GrimMonkey
Title: Re:Change man in parachute
Post by: dmakatra on 08 Jun 2004, 15:34:14
showoff! ;D

:beat: *Gets Shot* :beat: