08.09.2018, 13:01
For a simple solution use GetPlayerVelocity and calculate the velocity vector using VectorSize.
It's extremely unlikely that someone is mid-air without any velocity, as they will fall or at least move.
Furthermore only allow planting on-foot.
For a better and reliable solution use MapAndreas or ColAndreas, this also lets you adjust the plant's position so that it's always perfectly on the ground (even with rotation, if using CA).
It's extremely unlikely that someone is mid-air without any velocity, as they will fall or at least move.
Furthermore only allow planting on-foot.
For a better and reliable solution use MapAndreas or ColAndreas, this also lets you adjust the plant's position so that it's always perfectly on the ground (even with rotation, if using CA).