Jump to content

Water function


villr

Recommended Posts

Posted

Do anyknow one if its work to createWater in a interior? Because there is water in Maddogs and i want to create water in a interior i made so.. anyone know if this is possible or something the mta team have to make or?

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

water1=createWater(685, -2420, 105, 700, -2420, 105, 685, -2350, 105, 700, -2350, 105)

setElementPosition(water1,-731.66,494.58,1371.97)

setElementInterior(water1,1)

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

function ?

handlers ?

nothing ?

Next time please use [ lua] [ /lua] tags

 

  
function lol() 
local water1 = createWater(685, -2420, 105, 700, -2420, 105, 685, -2350, 105, 700, -2350, 105) 
setElementPosition(water1,-731.66,494.58,1371.97) 
setElementInterior(water1,1) 
addEventHandler("onResourceStart",getRootElement(),lol) 

My Projects!

No one.

Posted

Ok no problem sir.

And nope didnt work, the water is still invisible.

And yes i added and end efter setElementInterior.

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

@GanJaRuleZ code what is not inside a function is executed on resource start so you dont need a function ....

any error in debugscript 3? i don't know i never used createWater

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

If you try to help people, you need to understand something 1st too.

There's end missing in lol() function.

And water will never work in interior cause of GTA engine not drawing the landmasses or water in interiors.

You could try to disable occlusions ( setOcclusionsEnabled(false) ), but there's no big hopes.

Water itself will function, it just will be invisible.

Posted
If you try to help people, you need to understand something 1st too.

There's end missing in lol() function.

And water will never work in interior cause of GTA engine not drawing the landmasses or water in interiors.

You could try to disable occlusions ( setOcclusionsEnabled(false) ), but there's no big hopes.

Water itself will function, it just will be invisible.

Hmm thx, i will try with that occlusion but how did they draw water in Maddogs? :S

EDIT: Didnt work.

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

hmmm, this worked for me but only 1 problem. i don't see tha water [ i'm using runcode [client side]

first i typed

/crun

water1 = createWater(685, -2420, 105, 700, -2420, 105, 685, -2350, 105, 700, -2350, 105) 

then:

/crun

setElementInterior(water1,1) 

then /crun

setElementPosition(water1,-731.66,494.58,1371.97) 

[ using freeroam ]

then i was typing /sp -731.66 494.58 1371.97

i was moving in the water, but it was in GTA III world

pic:

whole pic go tho this link.

http://imageshack.us/photo/my-images/26 ... ybs1k.jpg/

imagescafybs1k.jpg

Sometimes I dream about cheese

Posted

yea lol..

it only works to create water in interior 5, it will work without setElementInterior but i need it to have in interior 1.. but bleh :/

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

  • Moderators
Posted

yes, interior is not the right place to create water.....

Also vehicles will be invisible...

just gta bug....

Maybe you can try to reset water color... maybe it does work. Let me know :D

https://wiki.multitheftauto.com/wiki/SetWaterColor

(ask a admin to make a server script for you, I am to lazy xD)

Also:

Create water does not work to far from the homelands... (and pickups will be invisible to :x )

I hate that f.u.c.k.i.n.g bugs... but nothing you can do about it...

I have always trouble with that, I make maps away from the homelands, so you don't have to load normal gta objects, but ofcourse the bugs.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

Well the strang thing is why they don't allow it.. :? but karlis +1

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
yes, interior is not the right place to create water.....

Also vehicles will be invisible...

just gta bug....

Maybe you can try to reset water color... maybe it does work. Let me know :D

https://wiki.multitheftauto.com/wiki/SetWaterColor

(ask a admin to make a server script for you, I am to lazy xD)

Also:

Create water does not work to far from the homelands... (and pickups will be invisible to :x )

I hate that f.u.c.k.i.n.g bugs... but nothing you can do about it...

I have always trouble with that, I make maps away from the homelands, so you don't have to load normal gta objects, but ofcourse the bugs.

well vehicles works because if u get into an interior and takes a vehicle from admin panel you get it :P

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

  • Moderators
Posted

ok, well I created them with the editor.

But about the water.

If your water is invisible, you can place with the editor fake water above your invisible water.

and to finish it, you use dark blue conor markers at the bottom of the water. :wink:

~~~~~~~~~~~~~~~~~~

~~W~~A~~T~~E~~R~~

~~~~~~~~~~~~~~~~~~

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

yeah but was going to cover whole Liberty City with water so would take pretty mutch space for doing it i think and it will be pretty hard because i cant see the water xD

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

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...