mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-01-01 05:01:40 +09:00
Added sound to mention popup
This commit is contained in:
@@ -33,6 +33,7 @@ Event.register(defines.events.on_console_chat, function(event)
|
|||||||
for i,_player in ipairs(game.connected_players) do
|
for i,_player in ipairs(game.connected_players) do
|
||||||
if _player.index ~= player.index then
|
if _player.index ~= player.index then
|
||||||
if player_message:match(_player.name:lower()) then
|
if player_message:match(_player.name:lower()) then
|
||||||
|
_player.play_sound{path='utility/scenario_message'} -- plays a deeper sound when mentioned
|
||||||
sendFlyingText(_player, 'You\'ve been mentioned by: ' ..player.name .. ' in chat!')
|
sendFlyingText(_player, 'You\'ve been mentioned by: ' ..player.name .. ' in chat!')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user