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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Sound and impulse isnt working

Try replacing "&inEntity" with "&in Entity".

Tutorials: From Noob to Pro
10-20-2011, 03:13 AM
Website Find
Gamemakingdude Offline
Senior Member

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

Fixed thanks.

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




Users browsing this thread: 1 Guest(s)