Jump to content
Sign in to follow this  
susachintha

Unable to generate civilians in init.sqf

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×