Author Topic: Advanced Projectile collision  (Read 720 times)

I was wondering if someone would make it so projectiles only do damage if they actually hit YOU. For example, if I were to stand sideways and you shot slightly behind me, I wouldn't get hit. I know it's possible to nullify the damage, but would it be possible to prevent the projectile from colliding? Maybe just Raycast the actual parts of the body and let the others just be collisioned?
« Last Edit: October 27, 2008, 05:50:26 PM by tommybricksetti »

Assuming I understand your question... Minifigs don't have a collision mesh. The collision is created by this:
Code: [Select]
   boundingBox = vectorScale("4.5 4.5 4.4", 4); //"2.5 2.5 2.4";
   crouchBoundingBox = vectorScale("4.5 4.5 4.4", 4); //"2.5 2.5 2.4";
   proneBoundingBox = vectorScale("4.5 4.5 4.4", 4); //"2.5 2.5 2.4";

I know that's how it's created but I was talking about how you could make the projectile check if it should collide with that part of the box.

That would have to be done on the engine and on the shapefile. Coding Help cannot help you here.

Projectile movement and collision detection is handled by the engine code, not the game scripts, so it's impossible to change without Badspot's help.

That's why the question was aimed towards badspot.

Then it shouldn't be in Coding Help.

Yeah I knew I should have put it in suggestions and requests.

You could possibly, if you knew the exact dimensions, make some sort of armor mod that would just redirect projectile through you if you were hit in those areas.