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 How to make interacting with locked door play a sound?
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#1
How to make interacting with locked door play a sound?

When a locked door is attempted to be opened by the player I want a sound to played at a script area. I thought the 'SetEntityCallbackFunc' would work but it doesnt, I guess this command is only when picking entities such as Tinderboxes up?

Here is what I tried:

{

SetEntityCallbackFunc("mansion_1", "MonsterNoise");

}

void MonsterNoise(string &in asEntity, string &in type)
            
             {
            
                 PlaySoundAtEntity("", "pounding_low", "ScriptArea_monsterbang", 0.0f, false);
             }

03-17-2013, 06:07 PM
Find


Messages In This Thread
How to make interacting with locked door play a sound? - by serbusfish - 03-17-2013, 06:07 PM



Users browsing this thread: 1 Guest(s)