Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query: How to tell if your laser hits my TE? #5

Open
StargateMC opened this issue May 1, 2016 · 2 comments
Open

Query: How to tell if your laser hits my TE? #5

StargateMC opened this issue May 1, 2016 · 2 comments

Comments

@StargateMC
Copy link

StargateMC commented May 1, 2016

Hi There,

I'm trying to make a little addon that allows your lasers to be focused at a SGCraft stargate to destroy the iris slowly on the other end, similar to mechanics seen in the tv show.

How would the best way to detect a laser hitting my TileEntity?

Sorry to bother you, I'm pretty new to java, so any tips would be appreciated.
I have spent some time familiarising the myself with SGCraft and have the code ready to add durability to the iris, just need a way to reduce it =D

@DaComputerNerd717
Copy link

You could see if the laser's bounding box enters the stargate.

@DaComputerNerd717
Copy link

I would say you want to use the ArrayList lasers2 in lasermod.api.LaserCollisionBoxes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant