IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> Changing/adding crew to vanilla vehicle., How to change a vehicles crew.
Ziv
post Apr 6 2011, 10:45
Post #1


Junior Member
**

Group: Members
Posts: 15
Joined: 27-September 08
Member No.: 4,214



I'm trying to learn a bit of configwriting, so far its going well, but I have one question.

How can I change the crew from an already existing vehicle, in this example the Ka60.
From where I stand now I need the .p3d name, and cant get to it because of the Binarized files.
Anyway to get around that?


DisplayName = "Ka-60 Kasatka";
Faction = "Merc";
vehicleclass = "Air";
scope = 2;
Model = "ca\air_PMC\";
crew = "Pilot_EP1";
 
Quote Post
D@V£
post Apr 6 2011, 16:02
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



If you're trying to write a replacement config, it might be better to just do this, because (AFAIK) no other vehicle uses the PMC pilot: (I've used RU_Soldier_Pilot, but you could use anything... I also don't know the classname for the PMC pilot, and I can't find it on the place I normally use to get classnames....)
CODE
class RU_Soldier_Pilot; //External Class reference
class PMC_Pilot: RU_Soldier_Pilot
{
};


As far as I know, it's not possible to write a class replacement for an object in the same config you're referencing it in without the engine exploding from some sort of recurrence unsure.gif (or, you know, a "error in Config.bin line XX: class XYZ already defined" error... you could probably around this by using two different config files, but that might actually cause the engine to explode, so I wouldn't recommend it.)

You'd need to either have the original config to base your work off (which in PMC's case isn't possible, because, as you say, it's locked) or define a whole new class. Which I'd recommend, because it means you don't break every mission made ever tongue.gif


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I donít understand it, Iím afraid of it, and one day Iíll accidentally be killed by one.
 
Quote Post
Ziv
post Apr 6 2011, 18:29
Post #3


Junior Member
**

Group: Members
Posts: 15
Joined: 27-September 08
Member No.: 4,214



Thanks for the reply. Gonn' look in to it tonight!
 
Quote Post

Reply to this topicStart new topic
6 User(s) are reading this topic (6 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 15th October 2018 - 16:20