Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Music and doors

Page: 1 of 1
 Lord Kaisen
07-16-2005, 5:23 AM
#1
1. How to get a background music in your game?

2. How to make doors first switch off (with the red light texture) and the on (with the green light) ?
 riceplant
07-16-2005, 5:32 AM
#2
Select any brush and press n. Scroll to the bottom of the top list and choose worldspawn. Enter a key 'music' and value is the path of the music you want within the pk3s.
 Lord Kaisen
07-16-2005, 7:51 AM
#3
It works, thanks. Can anyone solve my door problem?
 madjawa
07-16-2005, 5:17 PM
#4
try to deactivate it with a target_deactivate, it should take it to red
 riceplant
07-16-2005, 10:54 PM
#5
I haven't used this yet, but doesn't it have something to do with the 'locked' spawnflag?

EDIT: Yes, if you set the 'locked' spawnflag, the door starts off red, and turns green when 'used' by another object (NOT a player). This of course assumes you are using one of the standard door textures, although I believe one door has it's colours the wrong way round (i.e. green for locked and red for unlocked).
Page: 1 of 1