01-13-2009, 12:56 PM | #1 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Sound (For Players Ear Only)
Hi, this might just be me that's missed something very obvious. I've created custom sounds and successfully used them in my map.
But i want to be able to play these sounds for "players ear only" when they trigger a cirtain multiple... and not play the sound out loud for everyone. I couldnt find a flag option allowing me to do this as there was before. Any way to fix this? via lua or are there other options i haven't yet discovered? /Thanks. |
|
01-13-2009, 06:32 PM | #2 |
Keep On Keepin' On
|
http://forums.fortress-forever.com/s...ad.php?t=18349
Code:
BroadCastSoundToPlayer , &FFLib::SendPlayerSound , |
|
01-13-2009, 11:44 PM | #3 |
Banned
|
|
|
01-14-2009, 12:12 PM | #4 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Hi.
Thanks for the help. I was able to work from your feedback and found this in hunted.lua. But since i am no genious at lua scripting im not sure how to bind this to a trigger_muntiple entity. Does anyone know? Combine these? Code:
trigger_broadcast = trigger_ff_script:new({}) function trigger_broadcast:ontouch( touch_entity ) if IsPlayer( touch_entity ) then Code:
-- if player:GetTeamId() == Team.kBlue then -- BroadCastSoundToPlayer(player, "ff_examplemap.examplesound") end |
|
01-14-2009, 02:48 PM | #5 |
Banned
Join Date: Sep 2008
Class/Position: Soldier Gametype: AVD Affiliations: TALOS Posts Rated Helpful 5 Times
|
Code:
trigger_broadcast = trigger_ff_script:new({}) function trigger_broadcast:ontouch( touch_entity ) if IsPlayer( touch_entity ) then local player = CastToPlayer(touch_entity) if player:GetTeam() == Team.kBlue then BroadCastSoundToPlayer(player, "ff_examplemap.examplesound") end end end |
|
01-15-2009, 08:59 AM | #6 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Thanks! This might actually do it. I'll run the script tonight, posting result later!
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|