Jump to content

Get component with onClientClick


aka Blue

Recommended Posts

Posted

Hi everyone. My question is... ¿its possible to position of the vehicle component by clicking? ¿How can i do it? Thanks :D 

I wanna make a component moving script :) 

yDORrdn.png

Posted

Yeah it should possible,try and use getWorldFromScreenPosition and processLineOfSight. This will give you the world co-ordinate, you then need to convert this to a relative value.

So subtract the vehicle's position from the X, Y and Z co-ordinates you got from the previous functions to make it relative.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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...