The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] LiquidArea Problem
theyhunger Offline
Junior Member

Posts: 15
Threads: 6
Joined: Jul 2017
Reputation: 0
#1
[SOLVED] LiquidArea Problem

Sorry to be posting every day about new issues but this one is easily the worst for me as I really want to use this feature.

There's an old screenshot for original Amnesia of the cistern entrance flooded and I wanted to use that so I have done exactly that. However, when walking on the platform above, it still makes the water walking / running sounds. To understand what I'm stating: https://www.youtube.com/watch?v=9rCmOdgOhKU

I also have two script areas to toggle the liquid area, here it is:

AddEntityCollideCallback("Player", "AreaToggleWater", "CollideToggleWater", false, 1);
AddEntityCollideCallback("Player", "AreaToggleWater_1", "CollideToggleWater_1", false, 1);

//---------------------------------------------------------------------------------------------------------------------

/*Toggle Water
 */
void CollideToggleWater(string &in asParent, string &in asChild, int alState)
{
if(GetLocalVarInt("PlayerInWater")==0) return; 
SetLocalVarInt("PlayerInWater",0);

SetEntityActive("LiquidArea_1", false);

SetEntityPos("LiquidArea_1", -4.994, -0.91, 50.263); //To move it away from map for safety

AddDebugMessage("OUT WATER", false);
}

void CollideToggleWater_1(string &in asParent, string &in asChild, int alState)
{
if(GetLocalVarInt("PlayerInWater")==1) return; 
SetLocalVarInt("PlayerInWater",1);

SetEntityActive("LiquidArea_1", true);

SetEntityPos("LiquidArea_1", -4.994, -0.91, 0.263); //To move it back to map for safety

AddDebugMessage("IN WATER", false);
}
(This post was last modified: 12-30-2018, 07:43 PM by theyhunger.)
06-23-2018, 05:12 PM
Find


Messages In This Thread
[SOLVED] LiquidArea Problem - by theyhunger - 06-23-2018, 05:12 PM
RE: LiquidArea Problem - by Mudbill - 06-23-2018, 11:12 PM
RE: LiquidArea Problem - by theyhunger - 06-24-2018, 11:13 AM
RE: LiquidArea Problem - by Mudbill - 06-25-2018, 03:46 PM
RE: LiquidArea Problem - by theyhunger - 06-25-2018, 08:17 PM
RE: LiquidArea Problem - by Mudbill - 06-27-2018, 03:35 AM
RE: LiquidArea Problem - by theyhunger - 06-27-2018, 08:48 AM
RE: LiquidArea Problem - by Mudbill - 06-27-2018, 03:42 PM
RE: LiquidArea Problem - by theyhunger - 06-28-2018, 08:35 PM



Users browsing this thread: 1 Guest(s)