How to toggle func_conveyor Created 7 years ago2017-11-01 09:05:10 UTC by User#6970 User#6970

Created 7 years ago2017-11-01 09:05:10 UTC by User#6970 User#6970

Posted 7 years ago2017-11-01 09:05:10 UTC Post #337903
How can one toggle func_conveyor?
Posted 7 years ago2017-11-01 19:57:00 UTC Post #337915
You can't if memory serves me correct. Eventually try a env_render entity and target with it your func_conveyor to turn it invisible and visible again. You can't turn it's moving animation off and on but only let it vanish.

If you're working on some sort of moving terrain in general with you sitting on a train or chopper check out my tutorial regarding that exact thing:

http://twhl.info/vault.php?map=6115
Posted 7 years ago2017-11-01 20:21:24 UTC Post #337916
The conveyor's scroll speed is stored in an entity's render color, so you could cheat and use env_render to change the color to 0 0 0 to make it stop.

X is whether to change scroll direction.
The speed value is broken up into the Y and Z values, Z contains 0-255, Y contains 256-32768.

I've never tried this myself though, and it won't affect the conveyor's actual speed. You'll need to use some tricks to prevent it from still pushing things, like a func_door that moves up to cover it, or a func_wall_toggle, if you can be sure that nothing will be touching it when toggled.

Note that triggering a func_conveyor will reset its scroll speed settings, so always apply that after triggering it.
Posted 7 years ago2017-11-03 12:51:06 UTC Post #337946
Very clever, thanks, but I think I'll leave the thing turned on. I'm building a gym and this is a for a threadmill. Turning it on or off is more like a useless nice to have. Thanks again!
Posted 7 years ago2017-11-04 07:34:10 UTC Post #337954
The conveyor's scroll speed is stored in an entity's render color, so you could cheat and use env_render to change the color to 0 0 0 to make it stop.
Sounds like a terrible hack...
Posted 7 years ago2017-11-04 12:14:21 UTC Post #337957
This whole engine is a hack, this is just how they network the data to the client.
You must be logged in to post a response.