Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 Problema Solucionado pero lo probare Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 Tenes que recargar los recursos con "/refresh". Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 Tenes que recargar los recursos con "/refresh". Link to comment
Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 Tenes que recargar los recursos con "/refresh". Castillo puedes venir al sv Mira es AlG plz ven mira esto Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 Se inicio el recurso o no? Link to comment
Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 Se inicio el recurso o no? se inicio pero no aparece el gate Link to comment
NodZen Posted November 21, 2012 Share Posted November 21, 2012 (edited) No se moverà porque todas las posZ son iguales!. Probà asi objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) function mover () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end addCommandHandler ("abrir", mover ) function close () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end addCommandHandler (cerrar", close ) Edited November 21, 2012 by Guest Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end ) Link to comment
Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 No se moverà porque todas las posZ son iguales!. Probà asi objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) function mover () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end addCommandHandler ("abrir", mover ) function close () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end addCommandHandler (cerrar", close ) No aparece el gate Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 Copia el codigo que puse y listo. Link to comment
NodZen Posted November 21, 2012 Share Posted November 21, 2012 Como que no aparece-- probà asi. Ami me anda function load () objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getRootElement(), load ) function mover () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end addCommandHandler ("abrir", mover ) function close () moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end addCommandHandler (cerrar", close ) Link to comment
Renkon Posted November 21, 2012 Share Posted November 21, 2012 aparecer aparecera pero no se movera porqe son las mismas coordenadas Link to comment
Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 Copia el codigo que puse y listo. me anduvo con ese pero la cosa es que no baja ni sube En abrir tendria que ponerla abajo de del piso ? Link to comment
Castillo Posted November 21, 2012 Share Posted November 21, 2012 objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end ) Link to comment
Sasu Posted November 21, 2012 Share Posted November 21, 2012 me parece que alfinal voy a tener que poner en mis tutoriales hasta como crear un archivo lua ._. jajaj ( re metido pero me hizo reir ) Link to comment
Julian09123 Posted November 21, 2012 Author Share Posted November 21, 2012 objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end ) addCommandHandler ( "puerta", function ( ) moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end ) castillo el gate aparece pero no se mueve Link to comment
Arsilex Posted November 21, 2012 Share Posted November 21, 2012 objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) addCommandHandler ( "abrir", function ( ) moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) end ) addCommandHandler ( "cerrar", function ( ) moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) end ) Link to comment
Recommended Posts