Sasu Posted November 13, 2012 Share Posted November 13, 2012 airportgate = createObject (980, 1759.5999755859, 552.59997558594, 27.700000762939, 0, 0, 340) MarkerOpen = createMarker (1761.3017578125, 571.13073730469, 24.565521240234, "cylinder",4, 255, 0, 0, 255) MarkerClose = createMarker (1749.8184814453, 531.37005615234, 27.262020111084,"cylinder",4, 255, 0, 0, 255) function abrir ( ) moveObject (airportgate, 5000, 1759.5999755859, 552.59997558594, 33.700000762939) end addEventHandler( "onMarkerHit", MarkerOpen, abrir) addEventHandler( "onMarkerHit", MarkerClose, abrir) Bueno, este script lo saque de otro post. Es para mover un objeto. Mi pregunta es: Si se trata de que de un solo marker mueva dos objetos, como sería? Link to comment
Castillo Posted November 13, 2012 Share Posted November 13, 2012 Agregas para mover la otra puerta despues de la primera o antes, es lo mismo. function abrir ( ) moveObject (airportgate, 5000, 1759.5999755859, 552.59997558594, 33.700000762939) moveObject (airportgate2, 5000, 1759.5999755859, 552.59997558594, 33.700000762939) end Como eso. Link to comment
Recommended Posts