Jump to content
dscha

Map object: cursorTarget = Null-Object

Recommended Posts

Okay, I am feeling kinda dumb atm...

I must have missed something.

 

 

 

Spawned Object in Editor -> "typeOf cursorTarget" -> Works.

 

So far so good, it takes the name of the config.cpp. Thats fine.

 

 

But:

 

Same Model on the Map:

 

NearestObjects -> Works. (in this case: "TestObject.p3d")

NearestObjects + TypeOf -> Works (in this case: "Land_TestObject")

 

CursorTarget -> Nope, Null-Object.

 

 

Did i miss something important? Scratching my head for a few hours now.

What else needs to be set up in the model.cfg / config.cpp.

.

 

Test-Model:

 

LODs: 0.000 

Geometry + GeometryPhys LOD:

  • Property names/+entry:
  • class: house
  • map: Building
  • sbsource: shadowvolume
  • prefershadowvolume: 0
  • LODNoShadow: 1
Config.cpp

#define _ARMA_

class CfgPatches
{
	class PatchTestObject
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};

class CfgAddons
{
class My_TestObject
{
	list[]={"Land_TestObject"};
};
};

class CfgVehicleClasses
{
	class TestingerObjects
	{
		displayName = "TestingerObjects";
	};
};

class CfgVehicles
{

	class House_F;
	class Land_TestObject: House_F
	{
		model = "\TestObject";
		scope = 0;
		armor=800;
                vehicleClass = "TestingerObjects";
                featureSize = 30;
        };
};

class CfgSkeletons
{
	class Default
	{
		isDiscrete=1;
		skeletonInherit="";
		skeletonBones[]={};
	};

	class TestObject_Skel: Default
	{
		isDiscrete=1;
		skeletonInherit="";
		skeletonBones[]={};
	};
};

class Rotation;

class CfgModels
{
	class Default;
	
	class TestObject: Default
	{
		skeletonName="TestObject_Skel";
		sectionsInherit="";
		sections[]={};
		class Animations{};
	};
};

Share this post


Link to post
Share on other sites

try setting scope to 2. That might work.

Share this post


Link to post
Share on other sites

Nope.

It seems like, it has something to do with the Map.

Tried the same Model on a different Map -> worked *strange* (just tested, a few minutes ago)

EDIT:

Okay, iam just confused now.

Vanilla A3 Buildings -> cursorTarget works.

CustomBuildings -> Don't work.

Same Model on AIA Chernarus (exchanged Model)

Vanilla A3 Buildings -> cursorTarget works

CustomBuildings -> cursorTarget works.

*scratching Head*

Anyone? oO

Share this post


Link to post
Share on other sites

Solved.

 

Map has been binarized wrong(?).

 

After re-binarizing (Map), it works.

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

×