OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: garrett on 23 Aug 2002, 09:05:30

Title: i have a two questions
Post by: garrett on 23 Aug 2002, 09:05:30
question 1..
how do u get men to parachute out of a chinook helicopter?
p.s. i have gold upgrade and i saw them do this in one of the missions in gold upgrade

questin 2...
how do u get to the place where you create briefings and pick the gear your guy can have or cant have?

p.s. yes i am sort of a nooby at map editer ;)
Title: Re:i have a two questions
Post by: tai mai shu on 23 Aug 2002, 09:16:16
to make men parachute, make a trigger, and put it to activation "alpha"

in the init field put; [soldier1, soldier2, soldier3, etc.] action ["eject"]

for selection of wepaons from the briefing, you gotta write a description.ext file, which i do not know how to do yet, there are a few tutorails out so far.

BTW, dont worry, we were all newbs once, im just beginning to grow out of that stage, but youll learn quickly, stick with it.  :afro:  :thumbsup: :wave:
Title: Re:i have a two questions
Post by: Hartza on 23 Aug 2002, 10:07:45
Question 2:
You can also make ammo and weapon boxes from where your men can pick up weapons an ammo. Men can drop their current weapon and pick new one.

Works best wiht playable men, but can be done by AI:s also
Title: Re:i have a two questions
Post by: SimonRussi on 23 Aug 2002, 12:51:31
question2 :

you can put in your mission folder the file ini.sqs which is executed when the mission's loaded. In this file you can write

man removeWeapon "weaponname"
man removemagazine "weapnname"
man addweapon "weaponname"
man addmagazine "weaponname"

so you create your customized equipment.
Title: Re:i have a two questions
Post by: Bremmer on 23 Aug 2002, 13:06:55
To allow you to actually choose weapon loadout in the briefing you need to have a description file (just a text file called description.ext). There are lots of things you can do with this file, below is an example of how to allow weapon selection. Remember though that you will only be allowed to select gear if you are the group leader

class Weapons
{
   class M16
   {count =  1;};
   class M16GrenadeLauncher
   {count =  1;};
   class M4
   {count =  1;};
   class M21
   {count =  1;};
   class M60
   {count =  1;};
   class HK
   {count =  1;};
   class LAWLauncher
   {count =  1;};
   class CarlGustavLauncher
   {count =  1;};
   class AALauncher
   {count =  1;};
   class G36a
   {count =  1;};
   class Steyr
   {count =  1;};
   class XMS
   {count =  1;};
   class MM1
   {count =  1;};
   class LaserDesignator
   {count =  1;};

   class AK74
   {count =  1;};
   class AK74SU
   {count =  1;};
   class AK74GrenadeLauncher
   {count =  1;};
   class AK47
   {count =  1;};
   class AK47CZ
   {count =  1;};
   class AK47GrenadeLauncher
   {count =  1;};
   class PK
   {count =  1;};
   class SVDDragunov
   {count =  1;};
   class RPGLauncher
   {count =  1;};
   class AT4Launcher
   {count =  1;};
   class 9K32Launcher
   {count =  1;};
   class bizon
   {count =  1;};
   class 6G30
   {count =  1;};
   class Kozlice
   {count =  1;};

   class Binocular
   {count =  1;};

   class NVGoggles
   {count =  1;};
};

class Magazines
{
   class M16
   {count =  10;};
   class Grenadelauncher
   {count =  10;};
   class M4
   {count =  10;};
   class M21
   {count =  10;};
   class M60
   {count =  10;};
   class HK
   {count =  10;};
   class LAWLauncher
   {count =  10;};
   class CarlGustavLauncher
   {count =  10;};
   class AALauncher
   {count =  10;};
   class G36aMag
   {count =  10;};
   class SteyrMag
   {count =  10;};
   class MM1Magazine
   {count =  10;};
   class LaserDesignator
   {count =  10;};

   class AK74
   {count =  10;};
   class AK47
   {count =  10;};
   class PK
   {count =  10;};
   class SVDDragunov
   {count =  10;};
   class RPGLauncher
   {count =  10;};
   class AT4Launcher
   {count =  10;};
   class 9K32Launcher
   {count =  10;};
   class bizonMag
   {count =  10;};
   class 6G30Magazine
   {count =  10;};
   class Kozliceball
   {count =  10;};
   class Kozliceshell
   {count =  10;};

   class HandGrenade
   {count =  10;};
   class Pipebomb
   {count =  10;};
   class Timebomb
   {count =  10;};
   class Mine
   {count =  10;};
   class Mortar
   {count =  10;};
   class Flare
   {count =  10;};
   class FlareRed
   {count =  10;};
   class FlareGreen
   {count =  10;};
   class FlareYellow
   {count =  10;};
   class SmokeShell
   {count =  10;};
   class SmokeShellRed
   {count =  10;};
   class SmokeShellGreen
   {count =  10;};
};



if you hunt around you should be able to find the names of the new resistance weapons and magazines.

Cheers
Title: Re:i have a two questions
Post by: T.S.C.Plage on 23 Aug 2002, 14:24:23
The command to "eject" of a plane/chopper is:

name (even array) Action ["eject", nameofaircraft]

Plage
Title: Re:i have a two questions
Post by: Messiah on 23 Aug 2002, 14:45:44


[attachment deleted by admin]
Title: Re:i have a two questions
Post by: T.S.C.Plage on 23 Aug 2002, 14:47:31
Right! Of course you've to use assign/unassign, too. ;D

Let's see what you've done... :P

Btw, "charge" arrived?
Title: i have two questins
Post by: garrett on 23 Aug 2002, 16:37:09
hey guys thanks for your help i'm gonna go try the stuff ;D thanks again!
Title: Re:i have a two questions
Post by: tai mai shu on 23 Aug 2002, 21:45:51
lol, they actually run after the vehicle??? lmao "Oh shit!!! stop!!!! my mom's gonna kill me if i miss that bus!!!!!" ;D
Title: Re:i have a two questions
Post by: Messiah on 23 Aug 2002, 23:07:17
hehehe - before i worked it out i was screaming abuse because they ran like 2000m to where the chopper landed just to get back in.  ::)
Title: Re:i have a two questions
Post by: Artak on 28 Aug 2002, 20:16:27
Seems to me that there's all the right material to answer your question garret.

#Problem Solved  :thumbsup: