OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Joiner on 15 Dec 2009, 19:59:32

Title: Multi-language briefing
Post by: Joiner on 15 Dec 2009, 19:59:32
Hi all!

Is there a way to make a multi-language briefing in Arma2? I use the F2 template to create an MP mission and it looks like it's possible to create a briefing in one language only. I've searched the forum for some info abt this, but there is only a fuzzy explanation without any examples or templates. Could you help me with this please? Thanks in advance.
Title: Re: Multi-language briefing
Post by: i0n0s on 15 Dec 2009, 20:40:14
Use localize at places where you would use a string (sentence)
Title: Re: Multi-language briefing
Post by: Joiner on 16 Dec 2009, 12:04:36
Could you please give an example of how I can use this in the briefing?
Title: Re: Multi-language briefing
Post by: i0n0s on 16 Dec 2009, 15:04:16
Example:
Code: [Select]
$objective = "Take control of the church.";to
Code: [Select]
$objective = localize "STR_OBJECTIVE_CHURCH";where STR_OBJECTIVE_CHURCH is defined in the missions stringtable.
Title: Re: Multi-language briefing
Post by: Joiner on 16 Dec 2009, 17:58:17
Thanks a lot!  :good:
Title: Re: Multi-language briefing
Post by: ModestNovice on 25 Dec 2009, 05:12:52
you could also use:
Code: [Select]
Language, English, German
STR_Briefing, "briefing_english.sqf", "briefing_german.sqf"

then:
Code: [Select]
[] execVM (localize "STR_Briefing");