Page 1 of 1

Far background tiles can absorb projectiles?

Posted: Sun Apr 12, 2020 7:31 pm
by NearHuscarl
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
}

Re: Far background tiles can absorb projectiles?

Posted: Tue Apr 14, 2020 5:16 pm
by Gurt
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.

Re: Far background tiles can absorb projectiles?

Posted: Tue Apr 14, 2020 7:45 pm
by NearHuscarl
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.