Frictional Games Forum (read-only)

Full Version: Sound and impulse isnt working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PHP Code:
////////////////////////////
// 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.
Try replacing "&inEntity" with "&in Entity".
Fixed thanks.