Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello! I'm attempting to put together a very simple test scene as practice for developing a futuristic Mario Kart-style combat racing game, and I want to be able to disable the player vehicle's keyboard controls when they complete a race. And I want to do so using scripting. Is this at all possible? |
||||
|
Hi, It's not possible to enable/disable behaviors. If you're using a built-in behavior, you can create a copy of your node without behavior, hide it, and then replace real player with that node. |
||||
|
or if you are using when a key pressed something behavior, or some proximities and other behaviors, you can initialize them with if a variable has a value do something, and upon the usage is complete, simply set the variable to something else. For this particular issue that you are facing do as @okeoke suggested by creating a dummy car hide it initially then upon completion of the race hide the playable car and show the dummy car. |
||||
|
Ahhh, I see. I'll give it a try. Thank you for your time. :) |
|