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 Do i Make sound at this Lookat script
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
How Do i Make sound at this Lookat script

Hey i wanna add some music when player get Force look
PHP Code: (Select All)
void OnStart()

{
SetEntityConnectionStateChangeCallback("lever""func_shelf");
}

void func_shelf(string &in asEntityint alState)
{
    if (
alState == 1)
    {
    
SetMoveObjectState("shelf",1.0f);
    
PlaySoundAtEntity("""quest_completed.snt""shelf_move_1"0false); }
}
 
  
void StopTimer(string &in asTimer)
 {
  
StopPlayerLookAt();
 }
 
 
void PickNote(string &in asEntity)

 {
    
StartPlayerLookAt("closet_1"5.0f5.0f"");
    
AddTimer("StopLookAt"1.5f"StopTimer");


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
01-04-2012, 07:25 AM
Website Find


Messages In This Thread
How Do i Make sound at this Lookat script - by jessehmusic - 01-04-2012, 07:25 AM



Users browsing this thread: 1 Guest(s)