Jump to content

robertcarr22

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by robertcarr22

  1. I am trying out a few things and have code that when you right click with a wand item it knocks back the entity your pointing at. I now want a circle of particles to appear as if its a spell hit. here is the code i have for spawning the particles: http://gist.github.com/robertcarr22/52acc1d813e1fe68b910 All the spawning of the particles work its just making them move out circularly
  2. oh… arg that means i need to think of another way of doing this any suggestions on how to get a bounding box so that the entity the player is pointing at gets selected? EDIT: nevermind figured something out!
  3. Right okay I tried this code out: https://gist.github.com/robertcarr22/21f97f33584c3e0b8468 and it works well in the south east direction but doesn't work at all in any other direction. This is probably because I've don't the maths for the bounding box wrong but Im not entirely sure.. EDIT: Seems to be with the calculation of where the player is looking not the bounding box Okay it actually seems to be something wrong with detecting entities in the box. It detects entities in the bounding box when facing south east but not any other direction. I can't figure out what is going wrong
  4. Thanks for this but i don't need to separate the client and server anymore I'm having a different problem
  5. Right okay I tried this code out: https://gist.github.com/robertcarr22/21f97f33584c3e0b8468 and it works well in the south east direction but doesn't work at all in any other direction. This is probably because I've don't the maths for the bounding box wrong but Im not entirely sure.. EDIT: Seems to be with the calculation of where the player is looking not the bounding box
  6. never heard of that method… what are the 2 params you put in the getEntitiesWithinAABB method? and where does that code get used?
  7. Ahhhh i see! Is there anyway to find the entity a player is looking at that will work on server side?
  8. Previous issue solved. Scroll down for current issue
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.