Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a trigger brick activate some other script?

Asked by 4 years ago

I know the basics of making something happen when player touches the brick,but I don't know how to trigger some other script with some block. For example, I have an invisible block with disabled collisions. And I have a destructable wall, and inside that wall is a brick with this script attached to it:https://www.youtube.com/watch?v=Rj-_cjGfCCY&t=4s. But that script activates when I start the game. So how do I make it so that when player walks through the invisible trigger block, the script inside the brick inside the destructable wall activates? Something like half life 2 where when player walks through the trigger, some event happens.

1 answer

Log in to vote
0
Answered by
moo1210 587 Moderation Voter
4 years ago

You could use bindablevents or bindablefunctions to communicate scripts with eachother.

Ad

Answer this question