Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

How to know if a static object can be moved pass by projectiles?

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 89
Joined: Thu Feb 07, 2019 4:36 am

How to know if a static object can be moved pass by projectiles?

Post by NearHuscarl » Fri Feb 28, 2020 3:47 am

Some static objects like MetalPla__, bullets can go pass them, some objects are not like Concrete__, Stone__.... Is there any easy way to know that property in script?

EDIT: Nvm I found it. it's IObject.GetCollisionFilter().BlockExplosions which return true for those objects that bullets can pass through, false otherwise
0 x
Image

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

Post by Gurt » Tue Mar 03, 2020 5:55 pm

You have the IObject.GetCollisionFilter().ProjectileHit property you can look at.
0 x
Gurt

NearHuscarl
Superfighter
Superfighter
Posts: 89
Joined: Thu Feb 07, 2019 4:36 am

Post by NearHuscarl » Wed Mar 04, 2020 11:58 am

Sorry, I was not being clear. Please have a look at this
0 x
Image

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

Post by Gurt » Sun Mar 22, 2020 12:59 pm

Added CollisionFilter.AbsorbProjectile and RayCastFilterMode AbsorbProjectile after v.1.3.4.
AbsorbProjectile indicates if a projectile will be absorbed (removed) when hitting an object or not. Use together with the ProjectileHit fiter option.
1 x
Gurt

Locked