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
Script Help Interact with door script
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#1
Interact with door script

I'm trying to make it that when you try to open a door which is locked you hear a voice coming from a speaker. When I interact with the door I don't hear anything. This is my script:

void OnStart()
{
SetEntityPlayerInteractCallback("PlayMusicBox", "PlayMusicBox", false);
}

void PlayMusicBox(string &in asEntity, int alState)
{
PlaySoundAtEntity("", "16_puzzle_bridge.snt", "speakers_1", 0.05f, false);
}
07-21-2014, 08:39 PM
Find


Messages In This Thread
Interact with door script - by goodcap - 07-21-2014, 08:39 PM
RE: Interact with door script - by goodcap - 07-21-2014, 08:52 PM
RE: Interact with door script - by goodcap - 07-21-2014, 09:11 PM
RE: Interact with door script - by Mudbill - 07-21-2014, 09:20 PM
RE: Interact with door script - by goodcap - 07-21-2014, 09:23 PM
RE: Interact with door script - by Mudbill - 07-21-2014, 09:50 PM
RE: Interact with door script - by Nice - 07-21-2014, 11:22 PM
RE: Interact with door script - by Radical Batz - 07-22-2014, 11:12 AM



Users browsing this thread: 1 Guest(s)