Source SDK

Source SDK

fr33m4n119 Mar 4, 2019 @ 10:45am
func_movelinear question
Hi guys,

i'm trying to make an elevator with a func_movelinear entity
it's working well : i have 10 stages fully deserve by the elevator

now i'd like to add a countdown : when the elevator reaches a stage, if no stage is called during the last 30 s, send the elevator on the top to the last stage

any idea ?

Thanks !
Last edited by fr33m4n119; Mar 4, 2019 @ 10:45am
< >
Showing 1-6 of 6 comments
Peter Brev Mar 4, 2019 @ 11:29am 
Use a logic_timer with a 30 second refire interval. Logic_timer will start disabled and will be enabled after your func_movelinear has fully opened (aka reached its destination). If somebody presses a button, it disables the logic_timer until the func_movelinear reaches its destination again, and so on from here.

fr33m4n119 Mar 4, 2019 @ 12:55pm 
ok ok, i have still one problem
it seems like that OnFullyOpen refers only to the first floor !
so it is only working for the first floor (i have 10 floors)
how can it works for all the floors ?
Last edited by fr33m4n119; Mar 4, 2019 @ 12:55pm
Snoopy Mar 4, 2019 @ 1:06pm 
func_movelinear only has outputs on the fullyopened and closed events so to trigger something in-between the top and bottom floors maybe use a trigger brush at each stop, triggered by the func_movelinear only. Use a name filter with the trigger so only the func_movelinear activates it.
Peter Brev Mar 4, 2019 @ 1:21pm 
Originally posted by fr33m4n119:
so it is only working for the first floor (i have 10 floors)
You should stick a func_tracktrain and a set of path_track entities if you have more than 2 floors.
fr33m4n119 Mar 5, 2019 @ 9:41am 
how do you do to tell the trigger_multiple to activate when the func_movelinear touch it ?
Snoopy Mar 5, 2019 @ 2:53pm 
Originally posted by fr33m4n119:
how do you do to tell the trigger_multiple to activate when the func_movelinear touch it ?


Originally posted by Snoopy:
Use a name filter with the trigger so only the func_movelinear activates it.

https://developer.valvesoftware.com/wiki/Filter_activator_name
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Mar 4, 2019 @ 10:45am
Posts: 6