Elevator

KriZion
1+ Posts
1+ Posts
Posts: 6
Joined: Sun Sep 04, 2011 4:15 pm

Elevator

Post by KriZion » Sat Sep 10, 2011 1:28 am

I cant find out what is wrong with this script can some one help me with it?it is suposed to be an elevator that works with buttons but it doesnt work


ent_fire lift_example kill

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

wait 15;ent_create path_corner
wait 15;ent_fire path_corner addoutput "targetname bottom"
wait 15;ent_fire bottom addoutput "classname lift_example"
wait 15;ent_fire 8 addoutput "bottom,target top"
wait 15;ent_fire
wait 15;ent_fire bottom addoutput "origin 1 1 0"

wait 25;ent_create path_corner
wait 25;ent_fire path_corner addoutput "targetname top"
wait 25;ent_fire top addoutput "classname lift_example"
wait 25;ent_fire 7 addoutput "onplayeruse top,target bottom"
wait 25;ent_fire
wait 25;ent_fire top addoutput "origin 1 1 106"

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

wait 45;ent_fire train toggle
wait 45;ent_fire train start

User avatar
Xseba360
Server Admin
Posts: 1663
Joined: Sun Apr 11, 2010 12:26 pm
Location: Poland

Re: Elevator

Post by Xseba360 » Sat Sep 10, 2011 3:59 am

KriZion wrote:I cant find out what is wrong with this script can some one help me with it?it is suposed to be an elevator that works with buttons but it doesnt work


ent_fire lift_example kill

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

wait 15;ent_create path_corner
wait 15;ent_fire path_corner addoutput "targetname bottom"
wait 15;ent_fire bottom addoutput "classname lift_example"
wait 15;ent_fire 8 addoutput "bottom,target top" // huh?
wait 15;ent_fire // umm. is it supposed to be like this?
wait 15;ent_fire bottom addoutput "origin 1 1 0"

wait 25;ent_create path_corner
wait 25;ent_fire path_corner addoutput "targetname top"
wait 25;ent_fire top addoutput "classname lift_example"
wait 25;ent_fire 7 addoutput "onplayeruse top,target bottom" // k but there is no button and there should be an " , " insead of space after "bottom"
wait 25;ent_fire // asd.
wait 25;ent_fire top addoutput "origin 1 1 106"

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

wait 45;ent_fire train toggle
wait 45;ent_fire train start
Fail. This is just Ant's example elevator with 4-5 lines changed.

Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: Elevator

Post by Nicdel » Sat Sep 10, 2011 4:56 am

Go die pls
Ingame: -[SaD]- Nico

Image

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

Re: Elevator

Post by ant_8490 » Sat Sep 10, 2011 7:29 am

There is no button prop/entity at all...

Ex.
Prop_physics_create <paintcan code>
Ent_setname button
Ent_fire button addoutput "spawnflags 256"

Then the button can be used like:
Ent_fire button addoutput "onplayeruse lift_example,stop,,0.0"
Ent_fire button addoutput "onplayeruse lift_example,addoutput,target <some path>,0.1"
Ent_fire button addoutput "onplayeruse lift_example,start,,0.2"

Also.. Please change the targetnames up!
Use notepad to replace (ctrl+h) all lift_example with something else and do this for any other names in the script so when other ppl run the example, it doesn't mess up your edited script.
[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

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Elevator

Post by shadowslayer » Sat Sep 10, 2011 8:19 pm

▄██████████████▄▐█▄▄▄▄█▌
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████▀
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me

KriZion
1+ Posts
1+ Posts
Posts: 6
Joined: Sun Sep 04, 2011 4:15 pm

Re: Elevator

Post by KriZion » Sat Sep 10, 2011 10:14 pm

Xseba360 wrote:
KriZion wrote:I cant find out what is wrong with this script can some one help me with it?it is suposed to be an elevator that works with buttons but it doesnt work


ent_fire lift_example kill

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

wait 15;ent_create path_corner
wait 15;ent_fire path_corner addoutput "targetname bottom"
wait 15;ent_fire bottom addoutput "classname lift_example"
wait 15;ent_fire 8 addoutput "bottom,target top" // huh?
wait 15;ent_fire // umm. is it supposed to be like this?
wait 15;ent_fire bottom addoutput "origin 1 1 0"

wait 25;ent_create path_corner
wait 25;ent_fire path_corner addoutput "targetname top"
wait 25;ent_fire top addoutput "classname lift_example"
wait 25;ent_fire 7 addoutput "onplayeruse top,target bottom" // k but there is no button and there should be an " , " insead of space after "bottom"
wait 25;ent_fire // asd.
wait 25;ent_fire top addoutput "origin 1 1 106"

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

wait 45;ent_fire train toggle
wait 45;ent_fire train start
Fail. This is just Ant's example elevator with 4-5 lines changed.
This Is meant for testing and to help newbs learn

KriZion
1+ Posts
1+ Posts
Posts: 6
Joined: Sun Sep 04, 2011 4:15 pm

Re: Elevator

Post by KriZion » Sat Sep 10, 2011 10:16 pm

Ant Now it crashes the server For some reason

Jack
Former Server Admin
Posts: 1248
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Elevator

Post by Jack » Sun Sep 11, 2011 6:57 pm

KriZion wrote:Ant Now it crashes the server For some reason
www.antimsorryforcrashingyourserver.com

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Elevator

Post by shadowslayer » Sun Sep 11, 2011 8:55 pm

KriZion wrote:
Xseba360 wrote:
KriZion wrote:I cant find out what is wrong with this script can some one help me with it?it is suposed to be an elevator that works with buttons but it doesnt work


ent_fire lift_example kill

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

wait 15;ent_create path_corner
wait 15;ent_fire path_corner addoutput "targetname bottom"
wait 15;ent_fire bottom addoutput "classname lift_example"
wait 15;ent_fire 8 addoutput "bottom,target top" // huh?
wait 15;ent_fire // umm. is it supposed to be like this?
wait 15;ent_fire bottom addoutput "origin 1 1 0"

wait 25;ent_create path_corner
wait 25;ent_fire path_corner addoutput "targetname top"
wait 25;ent_fire top addoutput "classname lift_example"
wait 25;ent_fire 7 addoutput "onplayeruse top,target bottom" // k but there is no button and there should be an " , " insead of space after "bottom"
wait 25;ent_fire // asd.
wait 25;ent_fire top addoutput "origin 1 1 106"

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

wait 45;ent_fire train toggle
wait 45;ent_fire train start
Fail. This is just Ant's example elevator with 4-5 lines changed.
This Is meant for testing and to help newbs learn
is that really what ur gonna call the new players? try taking a look at the reason u made this thread dude.
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me