This forum is going to be locked at the end of this year and eventually going offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Make sure to read the rules.

Cannot get IObjectNodePath using GetObjectsByArea()

Here you can find all solved gameplay problems and bugs (beginning from Pre-Alpha 1.8.8).
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Cannot get IObjectNodePath using GetObjectsByArea()

Post by NearHuscarl » Fri Mar 20, 2020 1:50 pm

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
1 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1885
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 35

Post by Gurt » Sat Mar 21, 2020 3:30 pm

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.
0 x
Gurt

Locked