Posts: 1,648
Threads: 482
Joined: Jun 2010
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?
Posts: 3,138
Threads: 257
Joined: Nov 2009
Reputation:
0
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..
Posts: 1,648
Threads: 482
Joined: Jun 2010
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
Posts: 3,138
Threads: 257
Joined: Nov 2009
Reputation:
0
I meant while swinging, but was a bit unclear . But now I see it won't work.
Wait for someone else to reply.
Posts: 717
Threads: 11
Joined: Jul 2008
Reputation:
0
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.