Did you encounter a problem, exploit, glitch or bug while playing the game or running the dedicated server software? Tell us about it here.
-
NearHuscarl
- Superfighter

- Posts: 97
- Joined: Thu Feb 07, 2019 4:36 am
Post
by NearHuscarl » Sun Apr 12, 2020 7:31 pm
Far background tiles are not supposed to absorb projectiles, but the value from the collision filter contradicts the reality.
Code: Select all
public void OnStartup()
{
var fb = Game.CreateObject("FarBgShadow00A");
var cf = fb.GetCollisionFilter();
Game.WriteToConsole(cf.AbsorbProjectile, cf.ProjectileHit); // true false
}
0 x
-
Gurt
- Lead Programmer

- Posts: 1887
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 36
Post
by Gurt » Tue Apr 14, 2020 5:16 pm
AbsorbProjectile serves no purpose while ProjectileHit is false. The default value for AbsorbProjectile is true for most objects in the game no matter what ProjectileHit says.
0 x
Gurt
-
NearHuscarl
- Superfighter

- Posts: 97
- Joined: Thu Feb 07, 2019 4:36 am
Post
by NearHuscarl » Tue Apr 14, 2020 7:45 pm
Yeah I know. The value is wrong still. For your context, I was creating a const value for CollisionFilter which disables collision to all objects, just want to reference the value from the farbg to make sure I was right.
0 x