OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Red Barron on 26 Sep 2007, 09:28:17
-
According to the scripting biki Ceeb has this to say about the "sideRadio" command (as well as sideChat):
Ceeeb
In OFP v1.96, sideRadio messages can be sent from 2 abstract sources: "Papa_Bear" and "Base FireFly". Use sideRadio on an array in the form [SIDE,"base"],[SIDE,"HQ"],[SIDE,"Papa_bear"] or [SIDE,"airbase"], where SIDE is the side broadcasting. "HQ", "base" and "Papa_bear" seem to be the same object. The callsign strings can be re-defined using a stringTable.csv file, using STR_CFG_PAPABEAR and STR_CFG_FIREFLYBASE. Example : [EAST,"base"] sideRadio "returnToBase".
In Arma it seems that "Papa_bear" has been changed to "Crossroad," but "Base FireFly" remains the same. What I really want is for my radio message to come from "Papa_bear." Is there any way to adjust the "abstract source," or at least make it come from a unit tagged as "papa_bear" (or whatever a mission editor wants it to be) instead of "1-1-A" (or whatever the unit is designated as by default) or the like?
To add another layer to my question, this mission I'm making is a MP coop, and I'd *like* to have the message only go to certain groups, not the whole side. Is this possible at all?
-
(group unit) setgroupid ["PAPA BEAR","groupcolor1"];
Where unit should be a west (?) unit placed on the map, named "unit".
-
u cud use da stringtable.csv and put in da next codes
STR_CFG_PAPABEAR,"Papa Bear"
STR_CFG_FIREFLYBASE,"Cielo"
dats from guardian angel :D
LCD OUT
-
Thanks guys, I think that gives me something to work with now.... I'm pretty illiterate when it comes to most anything beyond the most basic of scripting and the language, so this is why it's a bit difficult for me.
-
u cud use da stringtable.csv and put in da next codes
STR_CFG_PAPABEAR,"Papa Bear"
STR_CFG_FIREFLYBASE,"Cielo"
dats from guardian angel :D
LCD OUT
Okay, when I just copy and past STR_CFG_PAPABEAR,"Papa Bear" into the stringtable.csv file, it is still coming out as Crossroads, not Papa Bear.
On my trigger, I have this:
[resistance,"Papa_bear"] sideChat "Insert message here";
Any ideas as to what I could be doing wrong?
-
guess u need 2 ue [resistance,"HQ"]...
nywayz heres a quick example... just use da radio triger :D
LCD OUT
-
Sweet. Apparently I was a dummy who didn't actually save his stringtable after he changed it. Thanks LCD, that's one less headache to worry about.