New 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: New Script Problem (/thread-9268.html) |
New Script Problem - JoeBradleyUK - 07-20-2011 I have a new script problem, something about no matching signatures in all of the path nodes? Here is my script: //////////////////////////// // Run when starting map void OnStart() { AddEntityCollideCallback("Player", "Storage_Scare", "Storage_Scare", true, 0); } void Storage_Scare(string &in asParent, string &in asChild, int alState) { SetEntityActive("Storage_Enemy", true); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_1", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_2", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_3", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_5", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_6", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_7", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_8", "0.1", ""); AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", ""); } void FirstDiary(string &in item, int index) { ReturnOpenJournal(true); } //////////////////////////// // Run when entering map void OnEnter() { PlayMusic("04_amb.ogg", true, 0.7, 0.1, 0, true); } //////////////////////////// // Run when leaving map void OnLeave() { StopMusic(0.4, 0); } RE: New Script Problem - palistov - 07-20-2011 AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", ""); Only strings need quotation marks. RE: New Script Problem - xtron - 07-20-2011 Code: AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_1", 0.1, ""); float doesn't use " ". Damn Palistov were first XD RE: New Script Problem - JoeBradleyUK - 07-20-2011 (07-20-2011, 07:01 PM)xtron Wrote: Agggg!!! I forgot! thanks! |