Posts: 720
Threads: 34
Joined: Dec 2010
Reputation:
0
How to check XYZ of where a tearga/grenade lands?
It is possible?
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
I don't think so..
Would require a lot of math.
Posts: 154
Threads: 13
Joined: Dec 2010
Reputation:
0
You could probably do it with GetXYInfrontOfPlayer and GetPlayerFacingAngle (And maybe checking when the player hits and releases the fire button, but it would be very difficult), but otherwise its impossible to check where the projectile landed.
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
It's possible but you would need to detect how long the player held the grenade and it's trajectory. What would you actually use this for in the first place?
Posts: 720
Threads: 34
Joined: Dec 2010
Reputation:
0
Oops, sorry for being late. I wanted to sync teargas for my server. I tought of calculating the power depending how much time the player holded the button, but im not up to that since i'm not good at math.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Well you can't detect walls anyway, so..