fx/dummy.tik!?!?!?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

fx/dummy.tik!?!?!?

Post by Master-Of-Fungus-Foo-D »

panTera wrote:
ravage wrote:on my speaker i got :

classname static_miscobj_alarmbell
model static/alarmbell.tik
origin 8.00 48.00 80.00
scale 1.0
targetname speaker
testanim idle
You can't turn a speaker into a static alarmbell model. Make them two seperate things, one alarmbell model and one (invisible) speaker.
First add the static/alarmbell model and leave out the targetname.
Then make a new "script_model" close to the alarmbell model and give it:
Key: model
Value: fx/dummy.tik
and
Key: targetname
Value: speaker
whay cant we just make anything loopsound? why do we ALWAYS have to use an fx/dummy.tik script model????
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

cant u use a speaker:S
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

yes, you can also use 'sound->speaker' (and see the entity info box for instructions).
why do we ALWAYS have to use an fx/dummy.tik script model?
Give it a try with other models then. I did and I only get sounds to work with the 'dummy.tik' or 'sound_speaker' model. Using other .tik models as the sound origin gave the error "apllied to NIL listener". I think sounds only need to have a specific origin.
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

It will also work one a script_object brush. :roll:
Post Reply