Tonnzza Posted October 14, 2014 Share Posted October 14, 2014 (edited) . Edited February 7, 2015 by Guest Link to comment
ZL|LuCaS Posted October 14, 2014 Share Posted October 14, 2014 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
DNL291 Posted October 15, 2014 Share Posted October 15, 2014 What is wrong with this code? addEventHandler( "onMarkerLeave", hitMarker2) Was missing the 3rd argument which is the function. Link to comment
ZL|LuCaS Posted October 15, 2014 Share Posted October 15, 2014 What is wrong with this code? addEventHandler( "onMarkerLeave", hitMarker2) Was missing the 3rd argument which is the function. the code contains characters, will not work. Link to comment
DNL291 Posted October 15, 2014 Share Posted October 15, 2014 What do you mean by 'characters'? I also realized that there are two functions called: timerReady. I see no more errors besides those, but I haven't tested that code though. Link to comment
Anubhav Posted October 15, 2014 Share Posted October 15, 2014 Its already solved, he posted 2 topics. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now