Jump to content

Velocity


[MTA]revenngeR

Recommended Posts

function getPositionInFrontOfElement(element)
--Get the position 5 units in front
local transformed = matrix{0,5,0} * matrix(getElementMatrix(element))
--Get our offset components
local offX,offY,offZ = transformed[1][1],transformed[2][1],transformed[3][1]
--Return the transformed point
return offX, offY, offZ
end

This gets player front how can i make that code to check the player front?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...