#how do i make it so a window can break only if a brick prop is thrown at it

1 messages · Page 1 of 1 (latest)

distant sapphire
#

yup

frosty moat
#

maybe a trigger that extends a small bit out the window surface, which filters for the prop, and upon the prop, entering it, it will make the glass breakable. The prop exiting the trigger will make it unbreakable again. Only caveat would be that if you keep the prop in the trigger without breaking the window, obviously then anything can break the window.

#

Really can't think of a better solution at the moment?

median grotto
#

why would you need to make it unbreakable again once its broken

frosty moat
#

What is the context of this tho? Sounds like you could be creating some unintuitive mechanic that will be annoying to the player.(to original post)

median grotto
#

brick hits trigger, trigger fires break to func_breakable

frosty moat
#

yea but what if someone just slowly comes up with the brick to the trigger

#

what youre saying was my initial idea

#

but it has this small issue

median grotto
#

not an issue

frosty moat
#

it would look weird imo

#

speed not accounted for at all

#

of the brick

#

another alternative solution could be to setup two triggers, no.1 right close to the window, no.2 beyond the no.1 one in the direction away from the glass (no1 is sandwiched between glass and no2), and no2 has the break output, but it only fires if no1 was entered some specific time before no2 was, and both are filtering for just the prop. You could then configure the speed required (speed = thickness_of_no1/time_to_hit) by changing the thickness of the no1 trigger and the time window length. I did a sort of similar thing once. But maybe it's too convoluted.

bold prawn
#

your over compilcating things doing that , irl you can smash a window and still hold the brick :/

frosty moat
#

yea a bit :D