Lalalu Posted July 15, 2018 Share Posted July 15, 2018 Hola, hago este post por el siguiente motivo: Bueno, quisiera saber como usar correctamente createWater, este es un ejemplo de la comunidad: function fillDock() local water = createWater (-1715, 47, 0, -1574, 47, 0, -1715, 170, 0, -1574, 170, 0) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), fillDock) No logro comprender esto, es decir, como calcular las posiciones water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) Link to comment
Enargy, Posted July 16, 2018 Share Posted July 16, 2018 Lo calculas de la misma forma como se calculan los poligonos, por puntos que en este caso son las coordenadas en el juego. -- Son coordenadas inventadas. local PUNTOS = { [1] = {x = 1232.123, y = -6235.232}, -- POSICION EN LOS SANTOS [2] = {x = 2523.123, y = -5953.56}, -- POSICION EN LAS VENTURAS [3] = {x = 1513.123, y = -1933.234}, -- POSICION EN SAN FIERRO [4] = {x = 2313.123, y = -1123.112}, -- POSICION EN MOUNT CHILLIAD (opcional) } local ALTURA = 50 createWater(PUNTOS[1].x, PUNTOS[1].y, ALTURA, PUNTOS[2].x, PUNTOS[2].y, ALTURA, PUNTOS[3].x, PUNTOS[3].y, ALTURA, PUNTOS[4].x, PUNTOS[4].y, ALTURA) 1 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