Author Topic: onMeleeHit Event  (Read 852 times)

I've noticed lately when I was testing something on a jail rp map I've made that some/ i think, most, melee weapons on blockland don't activate the on projectile hit event. The only ones, I THINK, being the fist (not the one from the tf2 melee pack) and the default sword. So, i thought of an onMeleeHit event so this way everyone would be able to use any melee weapon to activate an event (e.g. say your making a vent and you want to use the T+T melee weapons as a tool to break the vent open, the event would work like this: onMeleeHit>Self>fakekillbrick, and there you have it, a vent breakable with any melee weapon and save the trouble of using something like the tf2 wrench 24/7) I would really appreciate it if someone made this.

I'm pretty sure onProjectileHit works with melee weapons. Tell me one which it does not work with.

Tell me one which it does not work with.

Pretty much all of them, but I know there's one that works with onProjectileHit, I just forget which one.
Anyways, /support

And if we could get onProjectileHitBot and onMeleeHitBot that would be great.

Any weapon that uses raycasts made by Space Guy or whoever will not work with onProjectileHit events.

In fact, there really isn't a way to make them work without modifying the weapons themselves.

Any weapon that uses raycasts made by Space Guy or whoever will not work with onProjectileHit events.

In fact, there really isn't a way to make them work without modifying the weapons themselves.
isn't that because it just spawns an explosion at the end of a raycast?

isn't that because it just spawns an explosion at the end of a raycast?
Explosions come from projectiles.

It just does damage and creates a projectile where the raycast hit, but doesn't actually send the projectile anywhere and just instantly explodes it.
Space Guy (or whoever made the support script for raycasting weapons) could've easily added in one line to call the event onProjectileHit.

So how does the crowbar add-on work then? I mean, it has oncrowbarhit.

So how does the crowbar add-on work then? I mean, it has oncrowbarhit.
The only crowbar I found doesn't have this event and uses projectiles, not raycasts.


This:
http://forum.returntoblockland.com/dlm/viewFile.php?id=2810
It should have the oncrowbarhit event.
That's the one I found and it doesn't even have the word "event" anywhere in the script.

This:
http://forum.returntoblockland.com/dlm/viewFile.php?id=2810
It should have the oncrowbarhit event.
no that one just fakekills small bricks like 1x4s or the fence brick

I guess I have a different version then because I know some type of crowbar had an oncrowbarhit.