Here's the setup:
A simple cargo "platform" elevator in a shaft with doors on the wall only (not a "typical office building" type) that goes between two levels. In the elevator shaft are a button at each level that move the elevator between levels. Outside the shaft is the call buttons, one at each level.
Here's what I've got so far:
func_train: name: cargo, first stop target: cargopc1
func_door: name: cargodoor1
func_door: name: cargodoor2
path_corner: name: cargopc1, next stop: cargopc2, fire on pass: cargodoor1
path_corner: name: cargopc2, next stop: cargopc1, fire on pass: cargodoor2
func_button: name: cargoup, target: cargo
func_button: name: cargodown, target: cargo
func_button: name: call1, target: ?
func_button: name: call2, target: ?
My question is what is the easiest way to set up the call buttons so that it will move the elevator to the current level? Or just open the doors if it's already at the current level? I think it's an env_global but I'm not quite sure how to set this up. It's rather confusing to me. Also, is there a way to check the up/down buttons so that whatever level the elevator is at, the other button doesn't do anything?
I could just grab a prefab, but that really doesn't teach me anything (not to mention I'd have to edit it anyway)
Guidance would be appreciated on this. Thanks.
-Ryandor


