thegrb93 / StarfallEx

Starfall, but with active development and more features. Write Garry's mod chips similar to E2, but in lua
https://discord.gg/yFBU8PU
Other
201 stars 114 forks source link

GWATER2 #1673

Closed terenbutor closed 8 months ago

terenbutor commented 8 months ago

how to make the water flow like from a tap? can you throw in the code for this?

friztailo commented 8 months ago

Use particle and gravity

friztailo commented 8 months ago

gwater2 used additional modules for render

terenbutor commented 8 months ago

how?

friztailo commented 8 months ago

https://thegrb93.github.io/StarfallEx/#Libraries.particle.create https://thegrb93.github.io/StarfallEx/#Types.Particle.setGravity https://thegrb93.github.io/StarfallEx/#Types.Particle.setCollide

Examples can also be found in the garry`s mod wiki. The syntax is almost identical to starfallex. Learn to find information.

friztailo commented 8 months ago

https://thegrb93.github.io/StarfallEx/#Types.ParticleEmitter.add

thegrb93 commented 8 months ago

He wants fluid simulation particles. You should look at the gwater source code maybe. Nobody here will be able to answer this question.