3 questions.
1. I need to do a function the moment player hits water. How can I do that ?
2. Is there a way to set rendering mode on all water on map ( set_rendering or smthing ). 3. Let's say I have player in air flying. I need to find out his origin as he wasn't flying ( ground ). I just want to find out ground origin of him, that its exactly ground, not few feet down of ground, etc. Thanks. |
1.
Code:
2. Dont know 3. Code:
|
1. Ok, thanks.
2. Anybody? 3. I just need origin on GROUND. Not on all the way to ground >.< |
Quote:
huh? |
[img]http://img328.**************/img328/4162/newacdsee60bmpimage1mo.jpg[/img]
I need to know just origin on ground, that I spawn something on it. |
Code:
|
Thanks v3x. I'm gonna try.
Btw, second question. Anybody knows how to do stuff on water? I mean, water is entity so I should be able to render it and such. If its possible please gimme a snippet. |
Just spawn something at the player's origin and use drop_to_floor
|
I think that is better idea then v3x, I'm gonna use it.
Anyone to help with water ( how can I use set_rendering on water ? ) |
Code:
If it's not that, then I think it's just a func_wall with solid turned off on it. You could cycle through all ents and if a keyval is solid 0, and some other stuff that's water specific, render it. |
| All times are GMT -4. The time now is 23:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.