Chair is flying past the player [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: Chair is flying past the player [Script help] (/thread-10511.html) |
Chair is flying past the player [Script help] - Gamemakingdude - 09-29-2011 Hi, i am trying to make an event where an rather large chair flies past the chair and hits a door with an brute behind it. I have the chair the script area in the game but for some reason i dont know if its triggering the scripted area or making the chair move or fly. Here is my hpl code for the map. PHP Code: [code]//////////////////////////// I hope i get a reply as soon as possible. Mean while ill continue with the rest of my map, with the anticipation that people will be scared shitless. Let me fix the code up. RE: Chair is flying past the player [Script help] - Kyle - 09-29-2011 Change this: ChairScare(string &in entity, string &in type) To this: ChairScare(string &in asParent, string &in asChild, int alState) It should be like that because the callback was the type of collide callback. RE: Chair is flying past the player [Script help] - Gamemakingdude - 09-29-2011 Perfect it works great thanks! |