Script Error! 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 Error! Help! (/thread-11612.html) |
Script Error! Help! - Torelli - 12-02-2011 Hi can someone help me? I am scripting a custom mod for amnesia and i keep getting thease error messeges.. HELP! void OnStart() { SetEntityPlayerInteractCallback("key_study_1", "Activate_monster", "True"); } void OnEnter() { } void Activate_monster(string &in Entity) { SetEntityActive("servant_grunt_1", "True"); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "idle"); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "idle"); } It says: No Matching signatures :/ RE: Script Error! Help! - Your Computer - 12-02-2011 Booleans (true and false) are not strings. A string is anything within quotation marks. Remove the capitalization and the quotation marks from the booleans. RE: Script Error! Help! - FreshKorruption - 12-02-2011 (12-02-2011, 12:25 AM)Torelli Wrote: Hi can someone help me? I am scripting a custom mod for amnesia and i keep getting thease error messeges..Try taking the _ out of the Activate_monster. Do this for every time it says that is listed. RE: Script Error! Help! - Torelli - 12-02-2011 THANKS ALOT! it's working now! i have watched the "From noob to pro" tutorials and it is awsome! Thanks RE: Script Error! Help! - Torelli - 12-02-2011 Btw i have one more question! How do i play a sound after i have closed a note ? RE: Script Error! Help! - UnseenLegend ( NL ) - 12-04-2011 there is no function to Stop playing music when you close the note well... i dont know. but you can add a Timer To stop the music you know like this PHP Code: void PickingUpNote(string &in asItem, string &in asEntity) |