Jump to content

Que y se mal?


eldelahoz

Recommended Posts

Posted

Hola lo que pasa es que segui este tuto de como bajar la puerta con un solo comando

pero no se por que no meda y tengo el scrip al pie de la letra

object = createObject ( 980, 773.5, 836.79998779297, 7.6999998092651, 0, 0, -90 ) 
  
addCommandHandler ("puerta", 
function (source) 
    if getElementData ( source, "Puerta" ) == "ON" then 
        moveObject ( object, 5000, 773.5, 836.79998779297, 0 ) 
        setElementData ( source, "Puerta", "OFF" ) 
    elseif getElementData ( source, "Puerta" ) == "OFF" then 
        moveObject ( object, 5000, 773.5, 836.79998779297, 7.6999998092651 ) 
        setElementData ( source, "Puerta", "ON" ) 
    end 
end 
) 

lgEoigY.png

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Algun error en el debugscript? pusiste el script como client o server side?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

No, porque addCommandHandler no tiene argumento de jugador en el client side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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