Frictional Games Forum (read-only)
Script Problems :(( help! - 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: Script Problems :(( help! (/thread-9196.html)



Script Problems :(( help! - Dizturbed - 07-17-2011

Im getting a error everytime I try to test my scripts out..
The pic of the error is down at the attachments.
Please help!

EDIT:

forgot to add the code Tongue
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""girlscreams"girlscream_1true1);
}
void girlscream_1(string &in asParentstring &in asChildint alState)
{
StartPlayerLookAt("lookat"10.0f10.0f"");
PlaySoundAtEntity("scream""21_intro_scream""Player"1false);


-Dizturbed


RE: Script Problems :(( help! - MrCookieh - 07-17-2011

AddEntityCollideCallback("Player", "girlscreams", girlscream_1, true, 1);

should be

AddEntityCollideCallback("Player", "girlscreams", "girlscream_1", true, 1);


RE: Script Problems :(( help! - Dizturbed - 07-17-2011

Woooow, thanks! im dumb -.-