Jump to content

createwater bug?


BennyBunny

Recommended Posts

I have try a long time now add my water area in out of the map but everything what i have try no water.

So i have start a test and found out that when the water area is on the map no problem.

But when i wanna crate a water are not on the map outside the ocean then create water is not more working.

Try it self here is my test...

function thaResourceStarting( ) 
water = createWater ( -3778, -1579, 10, -4025, -1579, 10, -3778, -1381, 10, -4025, -1381, 10 ) 
  
-- water = createWater ( 1867, -1444, 10, 1968, -1443, 10, 1867, -1372, 10, 1968, -1370, 10 ) 
-- water = createWater ( 17, -1544, 10, 118, -1543, 10, 17, -1472, 10, 118, -1470, 10 ) 
-- water = createWater ( -1, -1544, 10, 109, -1543, 10, -1, -1472, 10, 109, -1470, 10 ) 
-- water = createWater ( -100, -1544, 10, 9, -1543, 10, -100, -1472, 10, 9, -1470, 10 ) 
-- water = createWater ( -100, -1579, 10, 9, -1579, 10, -100, -1381, 10, 9, -1381, 10 ) 
-- water = createWater ( -200, -1579, 10, -91, -1579, 10, -200, -1381, 10, -91, -1381, 10 ) 
-- water = createWater ( -2000, -1579, 10, -1891, -1579, 10, -2000, -1381, 10, -1891, -1381, 10 ) 
-- water = createWater ( -2900, -1579, 10, -2791, -1579, 10, -2900, -1381, 10, -2791, -1381, 10 ) 
-- water = createWater ( -3000, -1579, 10, -2891, -1579, 10, -3000, -1381, 10, -2891, -1381, 10 ) 
water = createWater ( -3100, -1579, 10, -2991, -1579, 10, -3100, -1381, 10, -2991, -1381, 10 ) 
  
setWaterLevel ( water, 150 ) 
  
if water == false then 
  
outputChatBox ( "water fail") 
  
else 
  
outputChatBox ( "water ok") 
  
end 
  
end 
  
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) 

the last to are good for see what i mean.

IDK why or have i done something wrong :/

Link to comment

Ironically, you are wrong. You can't create objects outside the map boundaries (but the limit is not 1000) or atleast not in MTA Map Editor, as if you try to create objects out of the boundaries they will jump back to the map boundaries

Link to comment

Well, after 10000 (who noes, it could be infinity) the game engine is dead. You are out of the game engine. The GTA map has limits, the rest of the world are not created, it's just default. that's why setting wave height and level doesnt affect the outside

Link to comment
  • 1 month later...

what exactly are you trying to do? flood the map? if you are:

height = 40 
SizeVal = 2998 
  
southWest_X = -SizeVal 
southWest_Y = -SizeVal 
southEast_X = SizeVal 
southEast_Y = -SizeVal 
northWest_X = -SizeVal 
northWest_Y = SizeVal 
northEast_X = SizeVal 
northEast_Y = SizeVal 
  
function thaResourceStarting( ) 
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) 
    setWaterLevel ( height ) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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