Page 1 of 1

Find a grammar

Posted: Fri Mar 04, 2022 12:50 pm
by sdgmlj
How to detect whether it is in the scene editing mode or in the official game?

I made a module, but there will be bugs in the scene editing mode, so I want to add a detection script. How can I add it? Thank you

Re: Find a grammar

Posted: Fri Mar 04, 2022 1:28 pm
by sdgmlj
I may not express it clearly enough. I mean how to detect whether it is in "map editor modes" or "normal game"? I don't know how to write this detection command

Re: Find a grammar

Posted: Fri Mar 04, 2022 2:44 pm
by Pi-C
You'll need to check player.controller_type.

Re: Find a grammar

Posted: Fri Mar 04, 2022 3:48 pm
by sdgmlj
Pi-C wrote: Fri Mar 04, 2022 2:44 pm You'll need to check player.controller_type.
Thank you, friend. You have done me a great favor. Thank you very much

Re: Find a grammar

Posted: Fri Mar 04, 2022 6:32 pm
by Pi-C
You're welcome, glad I could help! :-)