Elevator Damage

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Elevator Damage

Post by Cbielak »

[i]Basicaly ive made a map where there is an trap using an elevator (using func > door). What i want to do is when the elevator comes down and theres a person under it, it would do damage and instantly kill them. The elevator works well but when a person goes under the elevator goes through them and when they get shot the elevator doesnt go back up by itself.[/i] Please help me im almost done my map and i wana finish before i go away for the summer! Pease out.

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

Is the Elevator a glorified door?
Image[ Formerly Known As Snakeâ„¢ ]
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

What's a glorified door? I don't think that what i have.

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

kill brush

Post by tltrude »

You'll need to do some scripting. Make a trigger for the ground below the elevator -- must not touch people using the elevator. Give it a targetname, like "kill_trigger". The func_door elevator will also need a name, like "ele1".

In the script, have the trigger check to see if a player is touching it and the elevator at the same time, and kill them when it is true. You could also have the dead player drop into a box below -- so he will not touch the elevator anymore. Although, if the hole was deep enough, the player whould die from the fall.
Tom Trude,

Image
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

Ty, but im new and not realy good at scripting can you give a test script of what i need?

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

I don't have time to try it, but what if you put a "clip all" under the floor of the elevator ?

And would it take

key/health
value/1000

....................... ?
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

If its a door give it the key/value dmg/100 that should kill the player if they try to stop the lift with their body.
Image[ Formerly Known As Snakeâ„¢ ]
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

Thanks guys ill try both ways. :D

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

Ty. the key/ value dmg 100 thing worked! Now im almost done my map and il probly go into testing it today!

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Post Reply