|
| 07 Dec 2015 06:49 PM |
Lets say, I had a list of exceptions:
hit.Name ~= "derp" and hit.Name ~= "derp2" then
Is there any way, to also add an exception to terrain water? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2015 06:56 PM |
| I do not think you're able to detect if you're actually hitting water, but you can see if you're touching terrain. ( if hit.Name == "Terrain" then ) Check this is right, I'm not sure, I did a test for this a long time ago and I could be wrong with the spelling. Just print hit.Name |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2015 06:58 PM |
| This is actually for an explosion, and I want it to explode when hitting something solid (collidable and anchored) and terrain, but I don't want it to explode on terrain water. I already have the others down, but I haven't been able to find anything on terrain water. |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 07 Dec 2015 06:59 PM |
sorry im not really sure about this so there is probably a better way
but if you cast a ray and do findpartonray, it returns surface normal which can be water so that could work
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|