right above water
I have an "info_target" point entity in the func_water brush entity and I want to discover a point in the Z axis that is right above the boundaries of func_water entity the "info_target" entity is in. So the X and Y coords for this point would be the same as "info_target" and Z coords would've been right above the water model - not the water origin point, but the whole water model. :mrgreen: Hope you did understand.
[IMG]http://img192.**************/img192/862/lolz1y.png[/IMG] My first thought would be getting the index and then origin of the func_water the info_target is in, then getting the entity size and adding "entity z size /2" to the z coord of func_water. |
Re: right above water
Why don't you try what you thought of?
Code:
|
Re: right above water
Yeah but i don't know how to get the index of func_water the info_target would be in.
|
Re: right above water
use find_ent_by_class(iIndex, const szClass[]) with "func_water" and compare the info_target's origin to the mins/maxs of the func_water to see if it is corresponding func_water entity.
|
Re: right above water
Quote:
Code:
get_entity_touching(ent, classname) |
| All times are GMT -4. The time now is 05:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.