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
Elevator
-
- Server Admin
- Posts: 1663
- Joined: Sun Apr 11, 2010 12:26 pm
- Location: Poland
Re: Elevator
Fail. This is just Ant's example elevator with 4-5 lines changed.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
-
- Server Admin
- Posts: 2417
- Joined: Sun Apr 11, 2010 4:50 am
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: Elevator
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.
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.
-
- 1000+ Posts
- Posts: 1280
- Joined: Fri Sep 03, 2010 8:51 pm
Re: Elevator
▄██████████████▄▐█▄▄▄▄█▌
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████▀
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████▀
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
-
- 1+ Posts
- Posts: 6
- Joined: Sun Sep 04, 2011 4:15 pm
Re: Elevator
This Is meant for testing and to help newbs learnXseba360 wrote:Fail. This is just Ant's example elevator with 4-5 lines changed.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
-
- 1+ Posts
- Posts: 6
- Joined: Sun Sep 04, 2011 4:15 pm
Re: Elevator
Ant Now it crashes the server For some reason
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: Elevator
www.antimsorryforcrashingyourserver.comKriZion wrote:Ant Now it crashes the server For some reason
-
- 1000+ Posts
- Posts: 1280
- Joined: Fri Sep 03, 2010 8:51 pm
Re: Elevator
is that really what ur gonna call the new players? try taking a look at the reason u made this thread dude.KriZion wrote:This Is meant for testing and to help newbs learnXseba360 wrote:Fail. This is just Ant's example elevator with 4-5 lines changed.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
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