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
Sound and impulse isnt working
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#1
Sound and impulse isnt working

PHP Code: (Select All)
////////////////////////////
// Run first time starting map
void OnStart()
{
    
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    
if(ScriptDebugOn())
    {
        
GiveItemFromFile("lantern""lantern.ent");
 
        for(
int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i"tinderbox.ent");
    }
}
 
void BroKilled(string &inEntity) {
    
AddPropImpulse("servant_grunt_ragdoll_3",0,10,0,"world");
    
PlaySoundAtEntity("Shriek","Shriek.snt","Player"false);
    }
 
////////////////////////////
// Run when entering map
void OnEnter()
{
 
}
 
////////////////////////////
// Run when leaving map
void OnLeave()
{
 


I have it on PlayerInteractCallBack in the editor, the item is an servant grunt ragdoll, the impulse or sound isnt playing for some reason.

Rep if like me or im helpful or you love my stories!
Stephanos house
10-20-2011, 01:38 AM
Find


Messages In This Thread
Sound and impulse isnt working - by Gamemakingdude - 10-20-2011, 01:38 AM



Users browsing this thread: 2 Guest(s)