func_conveyor
Spawnflag
SF_CONVEYOR_STARTOFF | 4 (the conveyor is initially deactivated) |
Usage Details
- In XashXT, a conveyor can be flexibly controlled using prefixes. The < prefix changes the conveyor's current speed, multiplying it by a number in the range from
-1 to 1. For example a conveyor travelling at 500 with the speed change factor setto -1 will be given a negative speed of-500; a factor of 0.5 will result in a speed of 250, and so on. Speed change configuration example:
"target" "<conveyorname.0.15" - Note that this kind of activation will only queue the new speed for the conveyor but will not change it immediately if the conveyor is in an active state. You should either change the speed for an inactive conveyor (the speed will be applied automatically when it starts) or confirm the speed change with a subsequent activation that uses the > prefix. Speed change configuration and confirmation example:
"target" "<conveyorname.0.15"
"target" ">conveyorname" - To perform double activation, you will need two trigger_relay entities or a multi_manager. As an added bonus, you can achieve smooth speed change using a momentary_rot_button entity (an example is available in the demo maps).
- Activation with the < prefix but without the current value will cause the conveyor to stop.
Note: As illogical as this control scheme is, it is necessary for compatibility with the original Half-Life and its maps.