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
Door slam and cache?
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#1
Door slam and cache?

I've been trying to make a door slam following THIS tutorial here, from frictional games wiki, but it doesn't work! I could'nt find any mistake... I think this is being caused by the map.cache, that you guys say that causes several issues, so I deleted it, but every time I go test the level, another file is created!

Here's the map.cache:

void OnStart()
{
AddEntityCollideCallback("Player", "script_bam", "func_bam", true, 1);
}

void func_bam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}

Please help me!
(This post was last modified: 01-08-2013, 04:23 PM by Victor.)
10-26-2011, 06:09 PM
Find


Messages In This Thread
Door slam and cache? - by Victor - 10-26-2011, 06:09 PM
RE: Door slam and cache? - by Tanshaydar - 10-26-2011, 06:39 PM
RE: Door slam and cache? - by Victor - 10-26-2011, 06:53 PM
RE: Door slam and cache? - by MBchrono - 10-26-2011, 07:00 PM
RE: Door slam and cache? - by Victor - 10-26-2011, 07:13 PM
RE: Door slam and cache? - by Victor - 10-26-2011, 09:39 PM
RE: Door slam and cache? - by Your Computer - 10-26-2011, 09:44 PM
RE: Door slam and cache? - by Victor - 10-26-2011, 09:48 PM
RE: Door slam and cache? - by Victor - 10-26-2011, 11:16 PM
RE: Door slam and cache? - by Tanshaydar - 10-26-2011, 11:46 PM
RE: Door slam and cache? - by Victor - 10-27-2011, 09:12 PM
RE: Door slam and cache? - by Victor - 10-27-2011, 10:15 PM
RE: Door slam and cache? - by palistov - 10-27-2011, 06:49 AM
RE: Door slam and cache? - by Tanshaydar - 10-27-2011, 10:33 PM
RE: Door slam and cache? - by Lihas - 03-03-2012, 04:59 PM



Users browsing this thread: 1 Guest(s)