Jump to content

.


Tonnzza

Recommended Posts

I'm trying to do the gate. What is wrong with this code?
gate1 = createObject(980, -1980.5789794922, 283.62588500977, 37, 0,0,90) 
gate2 = createObject(980, -1980.5789794922, 293.22588500977, 37, 0,0,90) 
  
hitMarker1 = createMarker(-1985.8018798828, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) 
hitMarker2 = createMarker(-1976.7435302734, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) 
  
timerReady1 = function(leaveElement, matchingDimension) 
 moveObject(gate1, 5000, -1980.5789794922, 283.62588500977, 40, 0,0,90) 
end 
addEventHandler("onMarkerHit",hitMarker1,timerReady1) 
  
timerReady2 = function(leaveElement, matchingDimension) 
 moveObject(gate2, 5000, -1980.5789794922, 293.22588500977, 40, 0,0,90) 
end 
addEventHandler("onMarkerHit",hitMarker2,timerReady2) 
  
timerReady3 = function(leaveElement, matchingDimension) 
 moveObject(gate1, 5000, -1980.5789794922, 283.62588500977, 37, 0,0,90) 
end 
addEventHandler("onMarkerLeave",hitMarker1,timerReady3) 
  
timerReady4 = function(leaveElement, matchingDimension) 
 moveObject(gate2, 5000, -1980.5789794922, 293.22588500977, 37, 0,0,90) 
end 
addEventHandler("onMarkerLeave",hitMarker2,timerReady4) 

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