Frictional Games Forum (read-only)

Full Version: Understanding Trigger Areas
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile

Thanks guys!
(11-23-2015, 01:09 PM)Kanthos Wrote: [ -> ]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 Smile

Thanks 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
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 :/