05-11-2015, 05:21 PM
(05-11-2015, 03:31 PM)Watchmen link Wrote: 7. How do you create the white words appear on the side of the screen which appear when you start every campaign level.
They tell you the time, date, location based the actual location and time, not a pre typed infotext message.
What's the difference? Whether you use a literal string or a constructed string is the same thing.
Here's a function I use to create a date string from the current time:
Code:
/* Create a string for the given date.
* Date is standard 'date' output, i.e. [year, month, day, hour, minute]
*/
private ["_year", "_day", "_month", "_endString"];
_year = _this select 0;
_day = _this select 2;
_month = ["Unknowinus", "January", "February", "March", "April", "May", "June", "July",
     "August", "September", "October", "November", "December"]
    select (_this select 1);
_endString = "th";
if (_day == 1 || _day == 21 || _day == 31) then
{
  _endString = "st";
};
if (_day == 2 || _day == 22) then
{
  _endString = "nd";
};
_dateString = format["%1 %2%3, %4", _month, _day, _endString, _year];
_dateString;
Called as
_dateString = date call FHQ_fnc_date2String;
Location is more difficult. You could search for the nearest town center (I think those still exist in Arma 3), but in general, you will want to obtain that information otherwise.
Quote:8. Under the empty tab in the editor there is a section intel(interactive), when you pick up this item it takes you to the diary. What can you do with this and is it possible to use it with reference to Q1
I don't think those are usable, they are for use with Zeus.
I don't need luck, I have ammo.