Jump to content
Sign in to follow this  
headshot101588

How to place objects with class name

Recommended Posts

I've found the class name for an object I want to place the only problem is that it's not showing up in Eden. I've found the class name and tried to search for it in Eden's search but nothing showed up.

Share this post


Link to post
Share on other sites
1 minute ago, EO said:

What is the object?

Its a certain building from the map Celle 2, the good people 😄 on the scripting form helped me out finding the class name:

the full string that was returned

[["mbg_comapnybuilding_1.p3d","mbg\mbg_celle2_objects\mbg_companybuilding_1.p3d",true],"Land_companybuilding_1"]

Share this post


Link to post
Share on other sites

Sorry, I thought you were maybe referring to a vanilla A3 object. I'm not familiar with the Celle 2 assets.

Share this post


Link to post
Share on other sites
1 hour ago, headshot101588 said:

in Eden's search but nothing showed up.

 

Hello there headshot101588 !

 

create an .sqf and exec this in an initserver.sqf

 

add inside :

_pos = getmarkerPos "marker_1";
_Building = "CamoNet_INDP_F" createVehicle _pos;	//	add here the building classname
_Building setDir 360;	// direction

and add an empty marker in the editor and name this "marker_1"

Share this post


Link to post
Share on other sites
On 2/24/2019 at 9:56 PM, GEORGE FLOROS GR said:

 

Hello there headshot101588 !

 

create an .sqf and exec this in an initserver.sqf

 

add inside :


_pos = getmarkerPos "marker_1";
_Building = "CamoNet_INDP_F" createVehicle _pos;	//	add here the building classname
_Building setDir 360;	// direction

and add an empty marker in the editor and name this "marker_1"

This works only it says there is an error on line three: Error invalid number in expression

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  

×