Jump to content

que esta mal con el createWater


iFoReX

Recommended Posts

Posted

como dice el titulo e creado un create water para una piscina xD pero el agua no aparece D: y en el debugging no me aparece ningun error

water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 

Posted
como dice el titulo e creado un create water para una piscina xD pero el agua no aparece D: y en el debugging no me aparece ningun error
water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 

lo dejaste en server side?

ahh, es asi quiza:

water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 
setWaterLevel ( 10 ) 

Quiza estabas creando agua sin tamaño...

Posted
no se llena la piscina solo el mar sube de nivel
waterp = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 
setWaterLevel (waterp,10) 

quiza si ponemos la variable...

Posted
unexpected symbol near '['

es el ejemplo de la wiki:

bool setWaterLevel ( [water theWater,] float level ) 

ahora podes intentar asi:

setWaterLevel ( 10, waterp ) 

Aunq no creo :S

Posted
waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 
if ( waterp ) then 
    setWaterLevel ( waterp, 10 ) 
else 
    outputChatBox ( "El agua no se creo!" ) 
end 

Posted
function piscina() 
waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 
if ( waterp ) then 
    setWaterLevel ( waterp, 10 ) 
else 
    outputChatBox ( "El agua no se creo!" ) 
end 
addEventHandler("onResourceStart", getRootElement(), piscina) 

Serviria ??

Posted
function piscina() 
waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) 
if ( waterp ) then 
    setWaterLevel ( waterp, 10 ) 
else 
    outputChatBox ( "El agua no se creo!" ) 
end 
addEventHandler("onResourceStart", getRootElement(), piscina) 

Serviria ??

Pruebalo y dinos..

Posted

RECUERDA

DEBES ORDENARLO ASI:

x1, y1, z1: position of bottom left (south-west) corner.

x2, y2, z2: position of bottom right (south-east) corner.

x3, y3, z3: position of top left (north-west) corner.

x4, y4, z4: position of top right (north-east) corner.

SI NO NO SECREA!

  • Recently Browsing   0 members

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