PDA

View Full Version : Unable to generate civilians in init.sqf



susachintha
Jun 10 2009, 04:40
Hello all,
This is my first post for this forum and I'm a very beginer for mission editing and scripting, in trouble with creation of civilians.
I'm using VBS2 lite version. I use following line to do this, but error message comes as "bad vehicle type civilian". Please could anyone help me.

"Civilian" createUnit[position player, group player];

Thanks.

])rStrangelove
Jun 10 2009, 04:50
I'm not familiar with VBS2, but i'd say there is no object which classname is "Civilian" - Civilian classnames have to be different in VBS.

ALso, i'm not sure this is the right forum to get support for VBS.

Deadfast
Jun 10 2009, 04:50
Probably there is no unit with the class name of "Civilian".

Sadly there is no list of unit classnames so far, but you could place yourself a random civilian in the editor and add hint format ["%1", typeOf this] to see its classname.

Master85
Jun 10 2009, 07:15
here (http://forums.bistudio.com/showpost.php?p=1292937&postcount=6) is a list of civilian classnames - or here (http://www.armatechsquad.com/ArmA2Class/).

Dr_Eyeball
Jun 10 2009, 13:06
Also, if there are no civilians already in the mission, then you need to create the civilian side first, using createCenter (http://community.bistudio.com/wiki/createCenter).

susachintha
Jun 11 2009, 03:55
Thanks for the replies:) , First I loaded a civilian through mission editor and checked the mission.sqm file and name was "vbs2_af_civ_woman_1". So it works now by using the same name in init.sqf file.

quick question - For my VBS2 troubles, do i need to register and post problems in VBS2 forum then?