Frictional Games Forum (read-only)
[Solved] Yay, another script problem. - 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: [Solved] Yay, another script problem. (/thread-13262.html)



[Solved] Yay, another script problem. - Strembitsky - 02-12-2012

Code:
void ScreenShake(string &in asChild, string &in asParent, int alState)
{
    StartScreenShake(5, 5, 2, 3);
    PlaySoundAtEntity("03_break_wall.ogg", "03_break_wall.snt", "level_celler_1", "1", false);
}

That's my code. I get an error:
Code:
No matching signatures to PlaySoundAtEntity(string@&, string@&, string@&, string@&, const bool)

every time I enter the level the script is in.


RE: Yay, another script problem. - Your Computer - 02-12-2012

Strings are not integers.


RE: Yay, another script problem. - Strembitsky - 02-12-2012

(02-12-2012, 12:17 AM)Your Computer Wrote: Strings are not integers.
*facepalm* Thanks again, computer.