Page 1 of 1

Cannot get IObjectNodePath using GetObjectsByArea()

Posted: Fri Mar 20, 2020 1:50 pm
by NearHuscarl
The document says that area param to filter IObject does not work for farbg object. I don't think IObjectNodePath is farbg.

Code: Select all

var objects = Game.GetObjectsByArea<IObjectPathNode>(VeryLargeArea); // no results, but IObject or IPlayer works normally

Re: Cannot get IObjectNodePath using GetObjectsByArea()

Posted: Sat Mar 21, 2020 3:30 pm
by Gurt
IObjectNodePath is in the inactive physics layer so they can't be retrieved.
Fixed after v.1.3.4 where I'm adding parameters to the GetObjectsByArea() so you can determine if you want to get objects in the active physics world or the inactive (background) world. FarBg items and PathNodes will be able to be scanned then by selecting the background world.