onCollide scripting for liquids?
5 posts • Page 1 of 1
onCollide scripting for liquids?
Hello. Is it able to do an onCollide scripting with objects and liquids, like changing the color of a circle to the liquids's color when it touches it.
Any ideas?
Any ideas?
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: onCollide scripting for liquids?
i dont think you can do oncollide with water, also water can only be 1 colour at a time.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: onCollide scripting for liquids?
electronicboy wrote:...also water can only be 1 colour at a time.
What do you mean?
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: onCollide scripting for liquids?
Like all the water in the scene has to be the same color or sumpthin like that
-

niffirg1 - Posts: 376
- Joined: Mon Aug 31, 2009 10:31 pm
- Location: The Great American South!
Re: onCollide scripting for liquids?
you might want to be sure the object you're colliding with is water, by using
which returns a boolean value.
also, water attributes are usually on the SPH->{} console parameters, like SPH.color(updated on newer versions to app.watercolor).
- Code: Select all
e.other."" == "water" ?
which returns a boolean value.
also, water attributes are usually on the SPH->{} console parameters, like SPH.color(updated on newer versions to app.watercolor).
Jrv wrote:TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.
GTFO newfgt
-

RA2lover - Posts: 607
- Joined: Mon Aug 31, 2009 8:43 pm
- Location: Brazil
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests




