func_rotating

XashXT

func_rotating

Spawnflag

SF_ROTATING_STOP_AT_START_POS 1024 (the brush will stop at the exact position it was launched from; good for rotating lifts)

Option

target Target to activate when the object is blocked. Activation is repeated every half-second until the blocking object is removed.

Usage Details

  • The < prefix, followed by a dot and a number, lets you flexibly control the object speed, multiplying it by a number in the range from -1 to 1, as in func_conveyor.
  • If the Acc/Dec flag is turned on for the entity, then the speed will be applied over time rather than immediately.
  • Activating a stopped object with the < prefix will cause it to start. Activating an object with the < prefix but without a numeric value will cause it to stop.
  • Whether an object stops smoothly also depends on the state of the Acc/Dec flag (this is a standard flag in a func_rotating).
  • Activation with the > prefix and a value of 0 lets you reverse the rotation of a ventilator and give it maximum speed.
  • Activation with the > prefix and any non-zero value gives the object an angular impulse whose magnitude is determined by the value you specify. The object must be in the STATE_OFF state when this happens. The impulse itself does not change the state of the ventilator, which remains turned off. This effect can be used, for example, to fake equipment malfunctions.