OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ram TN on 01 Sep 2002, 12:57:56

Title: Making Enemies NOT Lie Down
Post by: Ram TN on 01 Sep 2002, 12:57:56
Yet another question by me  ;D
I made a mission in which some enemies are hiding inside houses and look through the windows. Now there are lethal... only problem is, when they hear shots they immediatly lie down, and when they stand up again, they fall from the house! Not so lethal... So, my question is, can I make them stand up at all costs?
Title: Re:Making Enemies NOT Lie Down
Post by: Ram TN on 01 Sep 2002, 13:04:56
While we're at it... (no relation to the thread really, buy anyway) how can I add weapons to the gear menu at the briefing?
Title: Re:Making Enemies NOT Lie Down
Post by: HuNtEr-exz on 01 Sep 2002, 13:12:03
this setunitpos "up"

as for second dont really know
Title: Re:Making Enemies NOT Lie Down
Post by: icarus_uk on 01 Sep 2002, 16:36:29
For the weapons in briefing, you need to add a "descrition.ext" file to your mission folder.  In this you put entried for the weapons you want available.

Since the tutorial on the file is on the site, and therefore inaccessable.  I shall put an example down in this thread.

[start example]

class Weapons
{

class M16GrenadeLauncher
{
count = 8
};

class M4
{
count = 8
};

class M60
{
count = 8
};

class HK
{
count = 8
};

class M21
{
count = 8
};


class LAWLauncher
{
count = 1
};


class MM1
{
count = 1
};

class G36a
{
count = 4
};

class XMS
{
count = 4
};

class Steyr
{
count = 4
};
};


class Magazines
{
class M16
{
count = 30
};

class GrenadeLauncher
{
count = 30
};

class M4
{
count = 60
};

class M60
{
count = 20
};

class HK
{
count = 20
};

class M21
{
count = 20
};

class LAWLauncher
{
count = 2
};

class MM1magazine
{
count = 20
};

class G36amag
{
count = 50
};

class SteyrMag
{
count = 50
};
};

[end example]
Title: Re:Making Enemies NOT Lie Down
Post by: Ram TN on 02 Sep 2002, 10:44:45
Thank you  ;D