Marino_420 Posted September 23, 2023 Posted September 23, 2023 addCommandHandler PARA QUE SE ABRA Y CIERRE UNA PUERTA DE UNA BASE
Moderators Tut Posted September 24, 2023 Moderators Posted September 24, 2023 Moved into Spanish scripting section. Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu
_SAXI_ Posted September 26, 2023 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)
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