Func_train Example

User avatar
ant_8490
Site Admin
Posts: 4388
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Func_train Example

Post by ant_8490 » Tue Jul 06, 2010 9:57 pm

Well since a lot of ppl have asked me how to make an elevator or lift, heres an example of a simple func_train without buttons:

Code: Select all

prop_dynamic_create props_lab/blastdoor001c
ent_setname floor
ent_fire floor addoutput "classname lift_example"
ent_fire floor addoutput "origin 1 1 0"
ent_fire floor addoutput "angles 90 0 0"

wait;wait;wait;wait;wait;

ent_create path_corner
ent_fire path_corner addoutput "targetname bottom"
ent_fire bottom addoutput "classname lift_example"
ent_fire bottom addoutput "target top"
ent_fire bottom addoutput "wait 2"
ent_fire bottom addoutput "origin 1 1 0"

wait;wait;wait;wait;wait;

ent_create path_corner
ent_fire path_corner addoutput "targetname top"
ent_fire top addoutput "classname lift_example"
ent_fire top addoutput "target bottom"
ent_fire top addoutput "wait 2"
ent_fire top addoutput "origin 1 1 500"

wait;wait;wait;wait;wait;

ent_create func_train
ent_fire func_train addoutput "targetname train"
ent_fire train addoutput "classname lift_example"
ent_fire train addoutput "origin 1 1 0"
ent_fire train addoutput "speed 60"
ent_fire train addoutput "target top"
ent_fire floor setparent train

wait;wait;wait;wait;wait;

ent_fire train toggle
ent_fire train start
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

ikillyou
100+ Posts
100+ Posts
Posts: 183
Joined: Sun Jun 20, 2010 1:28 pm
Location: Georgia, US

Re: Func_train Example

Post by ikillyou » Tue Jul 06, 2010 11:08 pm

Thanks Ant :)
[GR]ikillyou{A}{D}
[GR] cheats/deathrun senior admin.
GR donator.
Ant and nick's friend :)
Join us on our TS server here:
Image
Image

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

Re: Func_train Example

Post by Napalm » Sun Aug 08, 2010 9:27 am

>:D
Oof.