Jump to content

moveObject


Sasu

Recommended Posts

Hi guys! Can you help me with my script?

  
local barrera2 = createObject(968, 1288.59998, -2049.1001, 59, 0, 270, 90) 
  
function cerrar2() 
moveObject( barrera2, 1000, 1288.59998, -2049.1001, 59, 0, 270, 90) 
end 
addEventHandler("onMarkerLeave", marker1, cerrar2) 
  
function abrir2() 
moveObject( barrera2, 1000, 1288.59998, -2049.1001, 59, 0, 0, 90) 
end 
addEventHandler("onMarkerHit", marker1, abrir2) 

Well, my problem is when a hit the marker the object dont rotate as I want. It rotates to either side. Why?

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