playMaker

Author Topic: Set Number / Numeral?  (Read 1312 times)

TheHoongs

  • Playmaker Newbie
  • *
  • Posts: 2
Set Number / Numeral?
« on: September 19, 2014, 03:59:35 AM »
So I am making a battery system for my game's flashlight, and I need a timer system.

I set a float variable and stuff and basically the whole thing is done but I want my flashlight to turn off when the Float goes to 0 and when the Float is over 1 the flashlight stays on.

Help Please?

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Set Number / Numeral?
« Reply #1 on: September 19, 2014, 04:26:34 AM »
Use Float Compare action and Activate/deactivate gameObject with the light component. Something like that