Profile image

multi state group

60.7k MVC  23 days ago
5 downloads
No Tags

standard activation groups have only two values: true/false
but if you want to use an activation group but have more than two values, you need to make a simple memory cell:

Variable:MSG Code: repeat(MSG+1*((rate(ceil(abs(clamp01(Activate1)))))!=0?1:0),3)

What we have: click the AG1 adds +1 to MSG variable, regardless of whether AG1 is turned off or not

I did this when I decided that I wanted to use only one button to change the suspension mode, but have three modes video

Spotlights

General Characteristics

  • Created On Windows
  • Wingspan 7.0ft (2.1m)
  • Length 3.3ft (1.0m)
  • Height 0.3ft (0.1m)
  • Empty Weight 2lbs (1kg)
  • Loaded Weight 2lbs (1kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 44

Parts

  • Number of Parts 4
  • Control Surfaces 0
  • Performance Cost 62
  • Log in to leave a comment
  • Profile image

    I know I'm necro'ing, but.... I've got a similar code since a while ago that works on sum(abs(rate(Activate1)/2))... which should work with repeat function as well. Not sure about the performance cost though.

    +1 11 days ago