Please or Register to create posts and topics.

lever switch(need help)

Page 1 of 2Next

hello, im working on a underground map where i have to activate lights,gelpumps and more with lever switches, also called circuit breaker's

how do i make them?

edit: use door_rotating and the circuit breaker box

the prop_door wont rotete the way i want it to rotate...

http://developer.valvesoftware.com/wiki ... vel_Design

I think he's talking about the circuit breaker kind, like the levers you see in cooperative (pull both at the same time). In that case, I have no idea. I just tried to implement one the other day to no avail. I recommend just decompiling a Valve map and checking how they did it.

Idolon wrote:
I think he's talking about the circuit breaker kind

yes! i didnt remember what i was called.

yes i need a circuit breaker trigger for my singleplayer map,but i dont know how to make them

The way Id do is is to have a small invisible func_door_rotating at the base of the lever with the lever parented to it, and a invisible func_button covering the entirety of the breaker that triggers it, and whatever the breaker does.

The way Valve does it is to use a nodraw func_door_rotating at the pivot point, with the "use opens" flag. Then the lever model is parented to it, using prop_dynamic_override (i'm not sure why), and a prop_static for the breaker box itself.

Additional effects used are env_spark, and a couple of env_sprites (red and green) to show the status of the switch.

couldsomeone make a prefab?

i have tried func_door_rotating

prop_door_rotating

func_rotating_button

but nothing rotates the way i want it to rotate....

i really hate to make those underground gates too because THEY ROTATE THE WRONG WAY and they are ROTATING AROUND THE WRONG POINT....

Underground Gates: Did you move their origins and check the correct axis in the "flags" tab???

Lever: Did you move the func_rotating or the origin to where you want the axis of rotation, check the correct axis in the "flags" tab, and also, if necessary, click the "reverse direction" flag?

My Maps:
[spoiler][SP] Alternate[/spoiler]
Vordwann wrote:
Underground Gates: Did you move their origins and check the correct axis in the "flags" tab???

Lever: Did you move the func_rotating or the origin to where you want the axis of rotation, check the correct axis in the "flags" tab, and also, if necessary, click the "reverse direction" flag?

i moved the orgin,but it rotates around something else and not the orgin...

What about the axis and direction?

My Maps:
[spoiler][SP] Alternate[/spoiler]
Page 1 of 2Next