Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
I just worked with a few other creators to make hitscan logic for our FPS game. We wanted it to be robust, allowing for different effects when shooting at different surfaces.
We used labels for object type (Scenery for immovable, Object for moveable, and Foe for enemies), and we wanted to use Audio Surface Type for the material type.
To our disappointment, ONLY the collision sensor even makes use of this (other than puppets)! After discovering this, I animated a small ball along the hitscan path, set to collide with the surface which the laser-scope saw.
This collision kinda worked, but the data was unreliable and slow. We eventually decided to use loads of zones which search for sculpts literally named "Wood," "Metal," etc... which is expensive and time-consuming for our map makers.
In short, could we please have Audio Surface Type be an output for laser scopes?