playMaker

Author Topic: Disabling camera movement scripts during game  (Read 1924 times)

Halestorm

  • Playmaker Newbie
  • *
  • Posts: 2
Disabling camera movement scripts during game
« on: August 16, 2013, 02:31:10 PM »
I want to say how I really like Playmaker and how it has saved me soooo much headache with OnGUI creation.  I am trying to make a state machine that will disable several scripts that control camera movements when I click on my settings menu.  I don't necessarily want to pause the game just make is so clicking on the menus doesn't also engage the orbit camera script and other scripts on my cameras.  If anyone could point me in the right direction I would be overjoyed.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Disabling camera movement scripts during game
« Reply #1 on: August 16, 2013, 02:43:13 PM »
You're probably looking for Enable Behaviour:
https://hutonggames.fogbugz.com/default.asp?W54

Or Enable FSM:
https://hutonggames.fogbugz.com/default.asp?W55

You could have an FSM that just turns the relevant scripts off and on.

Halestorm

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Disabling camera movement scripts during game
« Reply #2 on: August 19, 2013, 03:14:57 PM »
Thanks, worked great!