Anyelberth Posted February 21, 2013 Posted February 21, 2013 Hola Chicos... Quisiera Saver Que Tengo De Malo Aca? theObject = createObject ( 2990, 2473.899, 41.7998, 29.200000, 0, 0, 269.98901) x,y,z = getElementPosition (theObject) Puerta = createColRectangle ( x,y, 10, 10) function funcion() moveObject ( theObject, 10000 , 2474, 41.9000015, 21.39999961853 ) end addEventHandler ( "onColShapeHit", Puerta, funcion ) o aca <meta> <info author="[FOLT][L]-|For-Speed|-" version="1.0.0" name ="puerta" description="Puerta" type="misc" /> <script src="server.lua" type="server" /> </meta>
Anyelberth Posted February 21, 2013 Author Posted February 21, 2013 Por Mas Que Trato De Buscar El Error Que Causa Que El Objeto No Baje, No Encuentro Error Alguno... Simplemente No Me Baja....
Plate Posted February 21, 2013 Posted February 21, 2013 probastes poniendo /debugscript 3 y mirando el error no?
Anyelberth Posted February 21, 2013 Author Posted February 21, 2013 Nop... No Me Sale Problema Alguno... Nada....
FraN-724 Posted February 21, 2013 Posted February 21, 2013 Lo probe y no tiene ningun Problema claro que tienes que pasar por atras de las letras de la reja para que baje el Objeto.
Anyelberth Posted February 21, 2013 Author Posted February 21, 2013 Lool... se mueve en la parte que yo no quiero... Como Puedo Aser Para Que Se Mueva En Los Dos Lados De El Objeto? theObject = createObject ( 2990, 2473.899, 41.7998, 29.200000, 0, 0, 269.98901) x,y,z = getElementPosition (theObject) Puerta = createColRectangle ( x,y, 20, 20) function funcion(source) local FOLT = getTeamFromName ( "FOLT" ) local Team = getPlayerTeam ( source ) if (Team) == FOLT then moveObject ( theObject, 10000 , 2474, 41.9000015, 21.39999961853 ) end end addEventHandler ( "onColShapeHit", Puerta, funcion ) function funcion2(source) local FOLT = getTeamFromName ( "FOLT" ) local Team = getPlayerTeam ( source ) if (Team) == FOLT then moveObject ( theObject, 10000 , 2473.899, 41.7998, 29.200000 ) else outputChatBox( "No Tienes Permiso", source, 0, 225, 0 ) end end addEventHandler ( "onColShapeLeave", Puerta, funcion2 )
Julian09123 Posted February 21, 2013 Posted February 21, 2013 Lool... se mueve en la parte que yo no quiero...Como Puedo Aser Para Que Se Mueva En Los Dos Lados De El Objeto? theObject = createObject ( 2990, 2473.899, 41.7998, 29.200000, 0, 0, 269.98901) x,y,z = getElementPosition (theObject) Puerta = createColRectangle ( x,y, 20, 20) function funcion(source) local FOLT = getTeamFromName ( "FOLT" ) local Team = getPlayerTeam ( source ) if (Team) == FOLT then moveObject ( theObject, 10000 , 2474, 41.9000015, 21.39999961853 ) end end addEventHandler ( "onColShapeHit", Puerta, funcion ) function funcion2(source) local FOLT = getTeamFromName ( "FOLT" ) local Team = getPlayerTeam ( source ) if (Team) == FOLT then moveObject ( theObject, 10000 , 2473.899, 41.7998, 29.200000 ) else outputChatBox( "No Tienes Permiso", source, 0, 225, 0 ) end end addEventHandler ( "onColShapeLeave", Puerta, funcion2 ) Amigo Mira El objeto se te mueve para un lado que no quieres??? Bueno entonces estan mal tus X,y,z.
Recommended Posts