Understanding Trigger Areas - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html) +--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html) +---- Forum: Development (https://www.frictionalgames.com/forum/forum-82.html) +---- Thread: Understanding Trigger Areas (/thread-31857.html) |
Understanding Trigger Areas - Kanthos - 11-23-2015 Hey guys! I´m trying to create a desinfection airlock for my greenhouse, similar to the one at the arkroom in Soma. So i thought i simple place a trigger area in my airlock, that triggers a method, that closes the doors, sprays some spray and let me out the airlock. I wrote in my script: bool Desinfection (const tString &in asParent, const tString &in asChild, int alState) { //dothings } But it only does things when i enter the area from one side. I looked into the Soma-code already, but things look quite complex. If anyone could explain me how i get the trigger area to work from both sides, i´d be really thankfull Thanks guys! RE: Understanding Trigger Areas - TiManGames - 11-24-2015 (11-23-2015, 01:09 PM)Kanthos Wrote: Hey guys! What do you mean by saying "one side"? Like when you enter to it from the front it'll work but if you enter to it from the back it won't work? Explain your problem RE: Understanding Trigger Areas - Kanthos - 11-24-2015 Indeed that was the problem. But i found the mistake in my code. I had a "if else" instruction that had to be a "if". So i got the impresion it only works from one side. Guess the thread can get deleted. Sry for your time :/ |