OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFPfreak on 17 Feb 2005, 03:48:03

Title: creating units
Post by: OFPfreak on 17 Feb 2005, 03:48:03
Well ive just downloaded something, and I'd like to know how people make it possible to select a unit in the mission editor.
Um.. ill explain...

e.g. if using F1, you create a unit, you create a T80

and people can make there own units. So can anyone explain? Sorry I know this is explained very badly otherwise I'll try to make a picture!
Title: Re:creating units
Post by: Planck on 17 Feb 2005, 03:58:41
If you mean:

How do people who make their own addon units make them also available in the mission editor?

The answer is it is all done in the config.cpp file.

For example.

The line....

VehicleClass = "Freds Tanks";


Planck

Title: Re:creating units
Post by: OFPfreak on 17 Feb 2005, 07:12:41
cool.... and um... 2 last things... where?
Where do I put the thing? In the folder with the unit? I'll try...

and, how do I make the config execute the script? Or is there a specific name for the script folder?
Title: Re:creating units
Post by: Baddo on 17 Feb 2005, 10:50:39

http://ofp.gamezone.cz/_hosted/brsseb/tutorials.htm

http://www.ofpec.com/editors/browse.php?category=1_6