villr Posted March 5, 2012 Posted March 5, 2012 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
Kenix Posted March 5, 2012 Posted March 5, 2012 https://wiki.multitheftauto.com/wiki/CreateWater https://wiki.multitheftauto.com/wiki/SetElementInterior https://wiki.multitheftauto.com/wiki/SetElementDimension http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
villr Posted March 5, 2012 Author Posted March 5, 2012 https://wiki.multitheftauto.com/wiki/CreateWaterhttps://wiki.multitheftauto.com/wiki/SetElementInterior https://wiki.multitheftauto.com/wiki/SetElementDimension Tested and didnt get the water into an interior Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS! Scripted since summer 2010
villr Posted March 5, 2012 Author Posted March 5, 2012 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
GanJaRuleZ Posted March 5, 2012 Posted March 5, 2012 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.
villr Posted March 5, 2012 Author Posted March 5, 2012 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
bandi94 Posted March 5, 2012 Posted March 5, 2012 @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 :
karlis Posted March 5, 2012 Posted March 5, 2012 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. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
villr Posted March 5, 2012 Author Posted March 5, 2012 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? EDIT: Didnt work. Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS! Scripted since summer 2010
karlis Posted March 5, 2012 Posted March 5, 2012 that's a good argument to be honest, maddog isn't lower than other interiors? [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
denny199 Posted March 5, 2012 Posted March 5, 2012 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/ Sometimes I dream about cheese
karlis Posted March 5, 2012 Posted March 5, 2012 exactly what i said, it is there, but invisible. There's no way to fix it as far as i know. you will need to parse IPL and recreate it outside interiors. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
villr Posted March 5, 2012 Author Posted March 5, 2012 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 IIYAMA Posted March 5, 2012 Moderators Posted March 5, 2012 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 https://wiki.multitheftauto.com/wiki/SetWaterColor (ask a admin to make a server script for you, I am to lazy ) Also: Create water does not work to far from the homelands... (and pickups will be invisible to ) 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
karlis Posted March 5, 2012 Posted March 5, 2012 these cant really be considered as bugs, as orginal game didnt need that and it is optimized for the orginal gtasa. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Moderators IIYAMA Posted March 5, 2012 Moderators Posted March 5, 2012 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
villr Posted March 7, 2012 Author Posted March 7, 2012 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 https://wiki.multitheftauto.com/wiki/SetWaterColor (ask a admin to make a server script for you, I am to lazy ) Also: Create water does not work to far from the homelands... (and pickups will be invisible to ) 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 Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS! Scripted since summer 2010
Moderators IIYAMA Posted March 7, 2012 Moderators Posted March 7, 2012 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. ~~~~~~~~~~~~~~~~~~ ~~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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
villr Posted March 8, 2012 Author Posted March 8, 2012 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 Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS! Scripted since summer 2010
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