Changing/adding crew to vanilla vehicle., How to change a vehicles crew. |
Changing/adding crew to vanilla vehicle., How to change a vehicles crew. |
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"; |
|
|
Apr 6 2011, 16:02
Post
#2
|
|
Gee, I wish we had one of them doomsday machines. 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 (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 -------------------- The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you 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. |
|
|
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!
|
|
|
Lo-Fi Version | Time is now: 19th April 2024 - 03:20 |