AnsweredAssumed Answered

make on OnObjectEnter script conditional

Question asked by raphthepenguin on Mar 13, 2014
Latest reply on Mar 13, 2014 by raphthepenguin

Hey,

 

I am having trouble with an OnObjectEnter script.

The script is set to a portal. It is a huge portal and when people click it it will be in the "selected stage". Beacuse of the user expirience I simply added this OnObjectEnter script that simply commits the records.

It works perfectly.


Now here is my problem, I have a delete button in the portal that retrieves the keys from the portal, but because the OnObjectEnter script is run first the keys are not correct.

So I am trying to somehow get around that scriptstep. I tried giving the Button a parameter, but the script is run first without parameter because its an object enter to click the button...

 

Any Ideas to get around this problem?!

Thanks!

Outcomes