Jump to content

Ayuda Con MoveObject


Anyelberth

Recommended Posts

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> 

Link to comment

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 ) 

Link to comment
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.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...