OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Dash5 on 15 Jul 2007, 10:57:33

Title: CfgVehicles...
Post by: Dash5 on 15 Jul 2007, 10:57:33
What's the best way to place units found in CfgVehicles in the editor? Is there a list somewhere with translations? Some example mission perhaps (a la the OFPECTM face/animation/music viewer)?
Title: Re: CfgVehicles...
Post by: nominesine on 15 Jul 2007, 17:07:06
Use the createUnit (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=c#createUnit) command, and replace the unit in the example with the cfgVehicle of your choice. A complete listing of all cfgVehicles in ArmA can be found in OFPEC's excellent Comref (http://www.ofpec.com/COMREF/armavehicles.php).

EDIT: Here's an example. Go to the editor, place a radio trigger on the map and write this in the "on activation" field:
Code: [Select]
mySoldier = group player createUnit ["SoldierWB", position player, [], 0, "FORM"]
Activate the trigger and you will have a BLUFOR Rifleman in your group. To see other units, simply replace the SoldierWB-part of the code above with any cfgVehicles-entry from the list I linked to.
Title: Re: CfgVehicles...
Post by: Dash5 on 15 Jul 2007, 21:07:20
Yes, I was just wondering if there was an easier way...most of these objects seem to be written in Czech, and translation is really slow going.
Title: Re: CfgVehicles...
Post by: Planck on 15 Jul 2007, 22:34:18
The comref cfgvehicles tree is definitely not in czech......trust me.



Planck
Title: Re: CfgVehicles...
Post by: Dash5 on 15 Jul 2007, 22:39:42
Okay. What language is it? Certainly not English.
Title: Re: CfgVehicles...
Post by: Planck on 15 Jul 2007, 22:48:15
I wrote it, so it must be in english, I only speak and write in english.

http://www.ofpec.com/COMREF/armavehicles.php

Try it and see...........


Planck
Title: Re: CfgVehicles...
Post by: Dash5 on 15 Jul 2007, 22:56:07
I don't mean to sound rude, but forgive me if I don't believe that domek, podesta, kasárna, budova...etc. are English words. The pictures are very helpful, I was just trying to eliminate all of this trial and error, but thanks for helping!
Title: Re: CfgVehicles...
Post by: Planck on 15 Jul 2007, 23:15:18
If you click the nice RED text that represents most entries in the tree, it will show you a nice picture of the item in question.

The czech names are the actual classnames of that item in the config.bin file.


Planck