Frictional Games Forum (read-only)
Sound and impulse isnt working - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Sound and impulse isnt working (/thread-10868.html)



Sound and impulse isnt working - Gamemakingdude - 10-20-2011

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.


RE: Sound and impulse isnt working - Your Computer - 10-20-2011

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


RE: Sound and impulse isnt working - Gamemakingdude - 10-20-2011

Fixed thanks.