Raised This Month: $ Target: $400
 0% 

get water entity index where player is swimming.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #10

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
 



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