Wysłany: 2017-06-13, 16:53
Mysterek
Swieżak w LUA
Wiek: 28 Na forum: 3497 dni Posty: 59
Nick w MP: InjectLine
Piwa : 867
Witam, dzisiaj postanowi?em sie troche pobawi? funkcja createWater,
Niestety nie dzia?a mi wiki MTA, nie pytajcie czemu. ale do rzeczy m?g?by mi kto? powiedzie? jak u?y? tej funkcji
Podpis
<SKYPE> facebook:grin1337
<TS3> ONLY PRIV
Wysłany: 2017-06-13, 17:03
=DC=
Wiek: 35 Na forum: 3944 dni Posty: 223
Nick w MP: =DC=
Piwa : 72
createWater ( int x1 , int y1 , float z1 , int x2 , int y2 , float z2 , int x3 , int y3 , float z3 [, int x4 , int y4 , float z4 ] [, bool bShallow = false ] )
Required Arguments
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.
Note: Only 3 coords creates a triangle (czyli podanie 3 pozycji tworzy tr?jk?t)
Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect. (efekt p?ytko?ci wody)
Podpis
Witaj
[you]
, jeśli Ci pomogłem postaw mi lub Dzięki!
Więcej szczegółów
Wystawiono 1 piw(a):Mysterek
Wysłany: 2017-06-13, 17:05
Cholewka
Zakorzeniony w LUA
Wiek: 22 Na forum: 3583 dni Posty: 190
Piwa : 707
Nie rozumiem o co chodzi. Mi wszystko ?adnie dzia?a, ale moge Ci j? tutaj wrzuci?.
Sk?adnia:
water createWater ( int x1 , int y1 , float z1 , int x2 , int y2 , float z2 , int x3 , int y3 , float z3 [, int x4 , int y4 , float z4 ] [, bool bShallow = false ] )
Required Arguments
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.
Note: Only 3 coords creates a triangle
Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect.
Przyk?ady.
-- Setting water properties .
height = 40
SizeVal = 2998
-- Defining variables .
southWest_X = - SizeVal
southWest_Y = - SizeVal
southEast_X = SizeVal
southEast_Y = - SizeVal
northWest_X = - SizeVal
northWest_Y = SizeVal
northEast_X = SizeVal
northEast_Y = SizeVal
-- OnClientResourceStart function that creates the water .
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" , resourceRoot , thaResourceStarting )
Client.
function thaResourceStarting ( )
water = createWater ( 1866 , - 1444 , 10 , 1968 , - 1442 , 10 , 1866 , - 1372 , 10 , 1968 , - 1370 , 10 )
setWaterLevel ( water , 20 )
end
addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ()), thaResourceStarting )
R?wnie? client.
Mam nadziej? ?e pomog?em.
Więcej szczegółów
Wystawiono 1 piw(a):Mysterek
Tagi: createwater
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: