![]() |
[SCRIPT] dont nowhow to fix it :( Script 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] dont nowhow to fix it :( Script help!! (/thread-17676.html) |
dont nowhow to fix it :( Script help!! - timonenluca - 08-11-2012 i dont now what i did wrongwhen i start the map it looks at the hollow (hollow_1) like i wantet but if i pick it up it normally needs to start looking at the chains (use_1) wich doesnt do after i picked it up also i forgot to insert a timer but if someone can help me fix this first please il apreciate it thanks for reading ![]() Code: //////////////////////////// RE: dont nowhow to fix it :( Script help!! - Lizard - 08-11-2012 StartPlayerLookAt in your use function, dosent have the right syntax This is what i would do: //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("player", "hollow_1", "use_1", "free", true); SetPlayerActive(true); SetPlayerCrouching(true); StartPlayerLookAt("hollow_1", 2, 3, ""); if (HasItem("hollow_1")) { AddTimer("", 0.2f, "use"); } } void free(string &in asItem, string &in asEntity) { SetPlayerActive(true); SetPlayerCrouching(false); StopPlayerLookAt(); } void use(string &in asTimer) { StartPlayerLookAt("use_1", 2, 3, ""); } //////////////////////////// // Run when leaving map void OnLeave() { } RE: dont nowhow to fix it :( Script help!! - timonenluca - 08-11-2012 (08-11-2012, 03:18 PM)ZereboO Wrote: StartPlayerLookAt in your use function, dosent have the right syntaxthanks it worked im currently not making any kind of story im learning anyways thanks for help now i now what i did wrong ![]() |