Ok here we go: I want to get a sound by activation (pretty much like the piano in venice for example).
So this is what I got:
entities for activation:
func_invisible_user targeted at a target_script_trigger (target phone1play)
script:
phone1
{
trigger phone1play
{
wm_announce "^1phone1 activated"
togglespeaker phone1sound
wm_announce "^1togglespeaker was activated" }
}
I get both wm_announces, so this means the trigger and trigger_script work fine.
Here is my sound entitity:
// entity 918
{
"scriptname" "phone1"
"volume" "140"
"origin" "-1272 -5168 1136"
"classname" "target_speaker"
"noise" "sounds/tr2r/phonering.wav"
"targetname" "phone1sound"
}
So what am I missing? In the LDR it tell you to use togglespeaker <targetname> which I clearly did.
And yes the sound works… at least it did in combination with a func_timer with random/wait set.