Detecting a crowbar being hit at certain co-ordinates?
#1

Hi there,

Is there any way of detecting a crowbar or melee weapon being used at certain co-ordinates, but only if they are actually using the weapon?

OnPlayerWeaponShot doesn't support this, I'm not attacking a player but a certain co-ordinate?
Reply
#2

GetPlayerWeapon if it's attached to another weapon.

To detected certain coordinates I'm not fully sure about though.
Maybe it could work with GetObjectPos, Idk..
Reply
#3

I mean like if there's a person swinging the crowbar at certain
Co-ordinates Id like it to send them a message or something for instance
Reply
#4

I meant while swinging, but was a bit unclear . But now I see it won't work.

Wait for someone else to reply.
Reply
#5

Unless you want to actually use something like the collision thing I've seen on here somewhere that can detect collisions with all kinds of objects, your best bet is to store the location of the "thing" that is supposed to hit and the facing angle required when it's hit and then to check wether the user is using the crowbar at that location with a similiar facing angle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)