How i could detect water entities in my level? I want to do is that if the player hits on the water (swamps,river) I'll play some water particle effects...
I've look with the flag IGNORE_PASSENTS and on_passable but doesn't work for me...
Any idea? Thanks
Re: detecting water entitites
[Re: boyax]
#285780 08/20/0903:5608/20/0903:56
Add SCAN_TEXTURE flag in c_trace. Then use a if statement and string compare like str_cmpi(string1, string2) to see if the water texture is what you want then play a sound or sprite or whatever.