Raised This Month: $ Target: $400
 0% 

get water entity index where player is swimming.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-22-2013 , 14:14   Re: get water entity index where player is swimming.
Reply With Quote #1

is there any ohter way to do this?
.Dare Devil. is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 04-22-2013 , 15:11   Re: get water entity index where player is swimming.
Reply With Quote #2

So the problem is that when a player interacts with func_water it is a bit more complex than just your generic entity ::touch.

The engine calls the PM function PM_CheckWater to check whether or not the player is interacting with water and the depth he is at (and what type of water it is). The func_water entity index is never passed in any way when the player is "touching" the water. It is only concerned about waterlevel and watertype.

Spoiler
teh ORiON is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode