Freezing Water
7 posts • Page 1 of 1
Freezing Water
Hi,
Does anyone know if it's possible to freeze water with an onCollide/onHitByLaser script?
Thanks,
Torn
Does anyone know if it's possible to freeze water with an onCollide/onHitByLaser script?
Thanks,
Torn
- Torn
- Posts: 32
- Joined: Tue Sep 01, 2009 8:06 am
Re: Freezing Water
You can't. It just generates one polygon for the selected water amount.
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Freezing Water
Ok, thanks. Another question - is it possible to make an object immune to scripting that would affect it?
- Torn
- Posts: 32
- Joined: Tue Sep 01, 2009 8:06 am
Re: Freezing Water
Torn wrote:Ok, thanks. Another question - is it possible to make an object immune to scripting that would affect it?
you could always use if statements that check the color. thats what i do
TheWinkits wrote:They both looks of cuking amazing
-
Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Freezing Water
Chronos wrote:Torn wrote:Ok, thanks. Another question - is it possible to make an object immune to scripting that would affect it?
you could always use if statements that check the color. thats what i do
Could you please explain that in a bit more depth? I haven't learned how to use if statements yet.
Thanks
- Torn
- Posts: 32
- Joined: Tue Sep 01, 2009 8:06 am
Re: Freezing Water
Have the object with the onCollide script and add e.other.color == [1,1,1,1] ? {} : {Your normal script}
Replace [1,1,1,1] with the exact color of the "immune" object.
Replace [1,1,1,1] with the exact color of the "immune" object.
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Freezing Water
Awesome, thank you Chronos and standardtoaster! After a moment of confusion before I realised that to be used with a laser the script should use 'geom' instead of 'color', it worked!
- Torn
- Posts: 32
- Joined: Tue Sep 01, 2009 8:06 am
7 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests