OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Jakerod on 10 Jul 2003, 00:29:37
-
#1.) In the config.cpp file how can i change the team of a unit?
#2.) What does each one of these lines do:
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class SoldierWG:SoldierWB{};
I am new at config.cpps for units cuz im usually a mission maker and island maker. Thanks for the replies.
-
Those lines are defining pre-existing troops, so you can 'build' on them with new units. That is to say, if you have:
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class OfficerW:SoldierWB{};
class bdm_OfficerW_new: OfficerW
{
vehicleclass="Bloody Days - US Men";
};
};
You'll be using all the pre-existing data for the Officer(West) such as name, loadout, health, ect, while only changing the vehicle class. You must use the
class NAMEX:NAMEY{}; if you are going to base a unit on a preexisting one.
Do you understand?
-
Yep thanks!!!