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

How do I get a brick to shoot another brick at the direction the first brick is facing?

Asked by 9 years ago

Ok, so my question is probably really confusing so I'll clarify it here. What I am trying to do is that I would have a brick facing any direction. A script determines which direction it is facing, and shoots another brick towards that direction. The reason why I'm asking this is because I am totally lost on how I'm supposed to start this. I'm pretty sure it has something to do with .unit and BodyForce and raycasting, except I am bad with all of them. So, how exactly would I do this? I tried to read the code inside the Paintball gun but I honestly had no idea what any of the code actually meant. I am not trying to put this in a tool.

Answer this question