Marino_420 Posted September 23, 2023 Share Posted September 23, 2023 addCommandHandler PARA QUE SE ABRA Y CIERRE UNA PUERTA DE UNA BASE Link to comment
Administrators Tut Posted September 24, 2023 Administrators Share Posted September 24, 2023 Moved into Spanish scripting section. Link to comment
_SAXI_ Posted September 26, 2023 Share Posted September 26, 2023 Sería algo así... local puerta=createObject(...) local abierto=false addCommandHandler("abrir",function(jug,_) if not(abierto)then local x,y,z=getElementPosition(puerta) moveObject(puerta,1500,x,y,z-30) abierto=true end end) addCommandHandler("cerrar",function(jug,_) if(abierto)then local x,y,z=getElementPosition(puerta) moveObject(puerta,1500,x,y,z+30) abierto=false end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now