![]() |
Script problem with Interact. - 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 problem with Interact. (/thread-8958.html) |
Script problem with Interact. - H. Filipe - 07-04-2011 Someone can tell me what is wrong please? Code: void OnStart() The game Starts but when i catch the key nothing happens. RE: Script problem with Interact. - rojkish - 07-04-2011 Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate) RE: Script problem with Interact. - Kyle - 07-04-2011 (07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate) I'm not sure if that would work because it should be (string &in asEntity). Just to let you know, you could be right. ![]() RE: Script problem with Interact. - rojkish - 07-05-2011 (07-04-2011, 09:24 PM)Kyle Wrote:(07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate) It's as I wrote actually, check the script functions page. RE: Script problem with Interact. - H. Filipe - 07-05-2011 is (string &in asEntity) Thanks ![]() RE: Script problem with Interact. - Kyle - 07-05-2011 (07-05-2011, 12:20 AM)rojkish Wrote:(07-04-2011, 09:24 PM)Kyle Wrote:(07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate) It looks like you were wrong, and also the script functions page. ![]() RE: Script problem with Interact. - rojkish - 07-05-2011 Really? oh wow that's weird |