Pappy60 10 Posted October 3, 2009 I have an MP mission I'm building with many custom sounds in it, mostly hq radio calls providing info on the next task using custom voice overs, will this cause lag on an MP dedicated server? Also I want to limit the radio calls just to the vehicle or the player, all of the radio calls are set off by triggers...when the radio call from hq comes, will all players hear it ? I am using sideRadio with a custom sound....or is there a better way to do it so only the player hears the message or only the vehicle? I also have some in vehicle noises but if the volume is high enough in the vehicle, it is deafening outside the vehicle and can be heard anywhere in the game, I am using playSound, is there a better command for limiting the sound to inside the vehicle? Share this post Link to post Share on other sites
Big_Daddy 10 Posted October 3, 2009 Ok, you should be able to have as many sounds as you like. It shouldn't cause lag, because the players have already downloaded the sounds. As far as only hearing inside the vehicle, use vehicleRadio. As far as playsound, you can try say. Play sound will always be heard by everyone. With say, you can only hear it if you are within hearing distance. Share this post Link to post Share on other sites
Pappy60 10 Posted October 4, 2009 You rock Big Daddy, that is exactly what I was looking for ! Thanks! Share this post Link to post Share on other sites
Pappy60 10 Posted October 4, 2009 okay I tried say but this is only for sounds, and I am really using radioclass messages / sounds ( I should have been more specific). So with Say, you only get the sound, no text message....(feel free to correct me) vehicleRadio does work, but it seems that the message (text) is coming from the driver (pilot in my case) like it is an outbound radio call... is there a way to use vehicleRadio and have it "receive" instead of transmit? I want to receive messages from HQ on vehicle radio but using it as is "vehiclename vehicleRadio "Radiomesg"; results in a radio text from "pilot" I tried using an empty vehicle to "send" a message, but this does not work, tried to "send" a message from an ai but this did not To put it into perspective, I have a trigger that is true when the pilot enters the helo, the trigger sends the radio message ....so using the vehicleRadio within this trigger means the vehicle is calling itself...I want the message to come from ATC (air traffic control) or HQ ...so maybe this helo trigger needs to trigger another trigger of an AI named ATC with a radio that actually sends the message to the helo? Just talking out loud.....I will try this and post the results.... Share this post Link to post Share on other sites
Pappy60 10 Posted October 4, 2009 Okay, ended up using vehiclename vehicleRadio "radiomessage"; just added a bit more text to the radiomessage so the pilot knows where the message is coming from also tested it on dedicated MP server and it all works well, no lag at all. Thansk for your help Big Daddy! Share this post Link to post Share on other sites
Big_Daddy 10 Posted October 4, 2009 yup.. MP framework is your friend... First, make sure the MP framework is initialized. if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"}; PAPABEAR=[West,"HQ"]; _nic = [PAPABEAR,crew vehicleName ,"loc",rsideRadio,"radiomessage"] call RE; The say command was for your playsound problem (vehicle alarms) Share this post Link to post Share on other sites
Pappy60 10 Posted October 8, 2009 (edited) I can't seem to find anything on rsideRadio ? What is the RE? Lastly what does the MPframework do? Obviously it has to do with MP environment but when is it used and why? So in your statement above, "_nic" is just a variable (could be any name?) then "papabear" is radio transmitter , "crew vehicle name" is radio receiver, "loc" is local? instead of ??? , "rsideRadio" is restricted sideRadio ? "call RE" is callling the MPframework script and passing the "_nic" variable to MPFramework? I like understanding what the code is doing so I can learn..I certainly appreciate the help but I want to learn so I am not having others produce code for me so I can copy paste it into my missions... Oh one more thing, since the mission is only going to be MP, can I simply call the MPFramework in the init.sqf ? What about using an isServer statement in the init file ? It seems silly to have to use the isServer statement sporadically throughout a mission to resolve locality issues...seems like it would be smarter to do it globally from the init file.... Edited October 8, 2009 by Pappy60 Share this post Link to post Share on other sites
maddogx 13 Posted October 8, 2009 I can't seem to find anything on rsideRadio ? What is the RE? Lastly what does the MPframework do? Obviously it has to do with MP environment but when is it used and why? There is some documentation on the MP framework here. Share this post Link to post Share on other sites
Pappy60 10 Posted October 8, 2009 (edited) Thanks MADDOGX, that explains a lot.....so this allows me localize things that would otherwise be global and globalize things that would otherwise be local...very cool.... ---------- Post added at 11:14 AM ---------- Previous post was at 11:11 AM ---------- Although it does state in the wiki not to use "rsidechat" or "rhint" etc...but does have all of the library commands....nevermind , further reading shows that you can use rHint etc within the MPFramework, you cannot use it outside of the framework....pays to read everything :) Edited October 8, 2009 by Pappy60 Share this post Link to post Share on other sites