OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Spitfire on 27 Jun 2008, 10:25:51

Title: custom radio chat?
Post by: Spitfire on 27 Jun 2008, 10:25:51
how do make that custom radio dialoge that can be found in the radio text bit?
thanks,
Title: Re: custom radio chat?
Post by: Gcfungus on 27 Jun 2008, 17:30:37
If you mean where you can type, use sidechat, groupchat, globalchat, and vehiclechat. Use them like so:
Code: [Select]
aP sidechat "Text"(aP is the name of the person, and text is what you want displayed, but must be in ""s)

Also, you may want to be using papabear. In which case, dont use a name, but instead use any of the following:
[West,"PAPA_BEAR"]
[East,"PAPA_BEAR"]
[Resistance,"PAPA_BEAR"] (I'm not sure if it's res or resistance.)

Eg.
Code: [Select]
[West,"PAPA_BEAR"] sidechat "report status. over."
~5
myplayer sidechat "I'm fine, but a little shaken up"
Title: Re: custom radio chat?
Post by: Spitfire on 30 Jun 2008, 05:39:12
im sorry i dont understand, can you be a bit more specific please? like does the code go in a script, unit, trigger or what?  ???
Title: Re: custom radio chat?
Post by: Gcfungus on 30 Jun 2008, 08:50:19
You can use it in either a script or a trigger's on activation. If you use the trigger activation then you can't use a "~5", and if you put multiple lines then they would appear at the same time.
Title: Re: custom radio chat?
Post by: Spitfire on 30 Jun 2008, 09:32:40
yep got it working, thanks fellas