Jump to content

Add coordinate


Recommended Posts

If u want to put Z for the element u have to put all the arguments before, u cant define an argument after the ones that werent declared. did u understand ?

  
setElementPosition ( element theElement, float x, float y, float z [, bool warp = true ] ) 
  

The function gets an element, a float x, a float y , a float z.. and an optional argument.

So if u want to declare only the float z, u also need to declare the float x and y and ofc the element.

But if u dont want to change the X and Y, put the same .

Sorry if u didnt understand,

I am portuguese and my english sucks :S

EDIT: Nevermind I didnt understand u, u want this:

  
local x,y,z = getElementPosition (other) 
  
setElementPosition(veh, x, y, z +2) 
  

try it ;)

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