Should be able to return POS with the following:
modded class MissionServer
{
int GetStaticItem(vector startpoint, float maxdis)
{
array<Object> NearObjects = new array<Object>;
GetGame().GetObjectsAtPosition3D( startpoint, maxdis, NearObjects, null );
int count;
for ( int i = 0; i < NearObjects.Count(); i++ )
{
if ( NearObjects[i].ClassName() == "Static_model_name" )
{
count++;
Print( "[Static_Model_Name] --" + NearObjects[i].GetPosition().ToString() );
}
}
return count;
}
GetStaticItem("7500 0 7500", 9000, );
}; //
config.cpp
class CfgNonAIVehicles
{
class StaticObject;
class Static_Model_Name: StaticObject
{
scope=1;
model="\DZ\structures\furniture\PATH\TO\MODEL\Model_Name.p3d";
};
Scripted class
class Static_Model_Name extends Object
{
string Get_StaticReturnItem()
{
return "Static_Model_Name ";
}
}