Page MenuHomeFeedback Tracker

Not possible to get proxy instance when using GetObjectsAtPosition or GetObjectsAtPosition3D
Assigned, NormalPublic

Description

Its not possible to get proxy instance when using GetObjectsAtPosition or GetObjectsAtPosition3D, example:

GetGame().GetObjectsAtPosition3D(position, radius, objects, cargos); 
for ( int i = 0; i < objects.Count(); i++ ) 
{
      Object object = objects.Get(i);
      if (object)
      ExpansionMessage(object.GetType()); //! Shows object type in chat
}

But on the other hand it's possible to get proxy instance using RayCast, also Hologram class can detect proxies

FYI: Proxy is defined in config

class Proxyalmara
{
	scope=2;
	model="\DZ\structures\furniture\Cases\almara\almara.p3d";
	autocenter="false";
	reversed="false";
	animated="false";
	shadow="false";
	proxyDisplayName="Wardrobe";
	simulation="alwaysshow";
};

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding
Steps To Reproduce

Execute the following script

GetGame().GetObjectsAtPosition3D(position, radius, objects, cargos); 
for ( int i = 0; i < objects.Count(); i++ ) 
{
      Object object = objects.Get(i);
      if (object)
      ExpansionMessage(object.GetType()); //! Shows object type in chat
}
Additional Information

Create an alternative function to RayCast but with the ability to make it a sphere and get multiple objects or tweak GetObjectsAtPosition and GetObjectsAtPosition3D

Event Timeline

mov3ax created this task.Feb 24 2019, 8:31 PM
Geez changed the task status from New to Assigned.Feb 25 2019, 2:03 PM
mov3ax updated the task description. (Show Details)Mar 27 2019, 4:48 PM
mov3ax edited Steps To Reproduce. (Show Details)
mov3ax edited Additional Information. (Show Details)