Sweeping ranger

From GMod Wiki

Jump to: navigation, search

Sweeperh1.PNG

What you need

Ranger


Sin gate


Accumulator gate


Value



OPTIONAL

You may substitute the Accumulator and the Value with a Timer and a Button, respectively.
The accumulator will just keep on counting to infinity as long as that 1 is supplied, the timer will do the same, but has a fixed rate. The thing I like about the Timer is that if you supply any number greater than 0 (no need for a sign gate) it will run.

Wiring it

  1. Wire the value to both the accumulators inputs.
  2. Wire the accumulator to the Sin gate.
  3. Wire the Sin gate to the X input of the Ranger.

Don't forget this is just one example, there are different ways of doing this. Try experimenting to see if you can make the ranger go up & down or in a circle. As always take this and develop it. Be imaginative, that is what this addon is all about.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox