playMaker

Author Topic: Can't disable a specific script with Enable Behavior  (Read 868 times)

SawyerK

  • Junior Playmaker
  • **
  • Posts: 92
Can't disable a specific script with Enable Behavior
« on: March 28, 2020, 04:49:02 PM »
I have a carController script that i want to disable when the FP character is not in the car, but for some reason it doesn't let me. Enable Behavior works perfectly with any other script except this one. Even when the carController is disabled in the Inspector it re-enables itself when i hit play. I found out that the script Car Dynamics uses the carController script so if i disable that i can disable the carController as well, the problem is if I disable carDynamics it starts sliding and bouncing like crazy. I solved this problem briefly with setting isKinematic true, but i need a better solution. Is there a way to overwrite a script with FSM?






djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Can't disable a specific script with Enable Behavior
« Reply #1 on: March 29, 2020, 04:28:42 AM »
Hi.
You will probably need to edit the script to do this