KatoMo Posted January 5, 2015 Posted January 5, 2015 hola necesito ayuda porfabor, estaba haciendo una puerta para que al usar un comando esta se cierre y abra pero al momento de jecutar el comando, la puerta desaparece que necesito arreglar para que cierre y abra objeto1 = createObject( 16775, 1809.599609375, -1895.400390625, 16.39999961853, 0, 0, 270) addCommandHandler("abrir", function () moveObject ( objeto1, 1809.599609375, -1886.400390625, 16.39999961853, 0, 0, 270) end ) addCommandHandler("cerrar", function () moveObject ( objeto1, 1809.599609375, -1895.400390625, 16.39999961853, 0, 0, 270 ) end )
Castillo Posted January 5, 2015 Posted January 5, 2015 El segundo argumento de moveObject es el tiempo en milisegundos que tardara en llegar a su destino, y vos no lo especificaste. Ejemplo: moveObject ( objeto1, 1809.599609375, -1886.400390625, 16.39999961853, 0, 0, 270) Despues de "objeto1" tenes que poner el tiempo. Por ejemplo: 1 segundo son 1000 milisegundos, asi que quedaria asi: moveObject ( objeto1, 1000, 1809.599609375, -1886.400390625, 16.39999961853, 0, 0, 270 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
KatoMo Posted January 6, 2015 Author Posted January 6, 2015 Gracias solid ya no desaparece la puerta ya cierra y abre normalmente
Castillo Posted January 6, 2015 Posted January 6, 2015 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts