Mapping - How do you make a shoot switch for a door?

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Mapping - How do you make a shoot switch for a door?

Postby MirceaKitsune » Sun Feb 01, 2009 9:47 pm

I'm trying to figure this out for weeks but cannot. How do you make a door which can be opened by shooting a separate trigger switch?

I have created a trigger_multiple and textured it with the trigger texture, linked it to my door via "target doorname" and have written the flag "health 5" in the trigger. The description for health says "health: amount of damage that has to be dealt to the trigger to activate (it then won't respond to merely touching it)" which means that when you shoot the trigger the linked door should open. However my door doesn't open when shooting the trigger like that. What must I do to make a switch need to be shot in order for the door to open?
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby C.Brutail » Sun Feb 01, 2009 9:54 pm

func_button -> trigger_multiple -> door ? :P
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby MirceaKitsune » Sun Feb 01, 2009 11:06 pm

C.Brutail wrote:func_button -> trigger_multiple -> door ? :P


Thanks, that was it. Set a func_button directly to the door and now it works :) I was avoiding func_button because that's for movable buttons, but I can set it to static by setting the lip to 0 I think (since mine is a hologram-like button, it doesn't move when shot but opens its door).
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby divVerent » Mon Feb 02, 2009 7:25 am

Actually, to make it NOT move, you set lip to its width (as it is the amount that REMAINS).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Sven » Tue Feb 03, 2009 9:33 am

How to calculate the lip?
Sven
Alien trapper
 
Posts: 315
Joined: Sun Jun 01, 2008 8:38 am
Location: Berlin; Germany

Postby divVerent » Tue Feb 03, 2009 10:56 am

number of quake units (the numbers you see in the grid). if your switch is a 64x32x16 box, you could set the button to move in x direction, and set lip to 64.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron