Jump to content
Sign in to follow this  
IndeedPete

OA AAN Overlay

Recommended Posts

Hi there,

i'm just looking at the first campaign mission to figure out how to create that news overlay from the cutscene. It seems a little complex and i was wondering if someone already found out how to get it working with own text etc. If you have something please share! ;)

Share this post


Link to post
Share on other sites

We found several builtin resources to use by placing the functions module and and checking the help via:

call bis_fnc_help.

Check the functions and you should find out how to use these new resources, incl that AAN thingy.

Sorry, not able to help out more atm.

Share this post


Link to post
Share on other sites

Yap, i just ran into that. I gonna try it out later.

Share this post


Link to post
Share on other sites

Ok, i got it working:

arma2oa2010070422524665.th.jpg

To use it, just place the "functions" module and use these 3 lines of code:

_header = parsetext "<t size='2.3'>US Withdrawal From Takistan</t><br />President Taylor visits President Hamir and the remaining US forces.";
_line = parsetext "Dow Jones deacreasing. - 80% of the 160.000 US soldiers already left Takistan. Complete withdrawal by the end of this week. - First takistani president: Mahmud Hamir won the election with 83% of the votes. - Total costs of Operation Arrowhead: 23.160.000.000 USD, 6.523 soldiers and 7.241 civilians. - Invasion of naked women in Los Angeles, CA: more than 500.000 naked chicks stormed the Walk Of Fame and blocked it for more than 2 hours. - Tea market still increasing";
nul = [_header,_line] spawn BIS_fnc_AAN;

Have fun! ;)

Edited by IndeedPete

Share this post


Link to post
Share on other sites
great stuff! but...where to put the code in?

There where you want the AAN Overlay in your scene.

Example...

_camera camPrepareTarget [-11717.56,-95750.96,7.71]
_camera camPreparePos [6827.74,2514.35,5.82]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
@camCommitted _camera

_header = parsetext "<t size='2.3'>Gruss an Bohemia Interactive</t><br />Dank der AAN Function sind nun AAN Nachrichten einblendbar.";
_line = parsetext " Mir war einfach nur langweilig! Drum dachte ich mir ich versuche mal eine AAN News zu schreiben bevor ich in den Urlaub gehe. Da ist die News...und ich geh jetzt in den Urlaub!. Tschüss!";
nul = [_header,_line] spawn BIS_fnc_AAN;

Share this post


Link to post
Share on other sites

i just used the wrong order to exec the sqf, working now ..thanks anyways!

Share this post


Link to post
Share on other sites
Fix the image size plz, besides that: awesome =)
What's wrong with the picture?^^ That's my resolution...

Share this post


Link to post
Share on other sites

I think he is referring to the forum rules, which I think you may have missed ;) If you don't fix, well, lets just say images of that "size" have a tendency to mysteriously disappear :D And, you've been registered for over a year so you should know what I'm talking about.

Share this post


Link to post
Share on other sites

Um, ok. I didn't notice that. :confused: Anyway, i changed it.:cool:

Share this post


Link to post
Share on other sites

Also interesting:

["Text Line 1", "Text Line 1", "Text Line 1"] call BIS_fnc_infoText;

I think it can only handle three short text lines, but it's a nice effect :)

Share this post


Link to post
Share on other sites

Yes, but i would appreciate a function wich allows more than 3 lines. :rolleyes: Anyways, it's truly a nice effect...

Share this post


Link to post
Share on other sites
Yes, but i would appreciate a function wich allows more than 3 lines. :rolleyes: Anyways, it's truly a nice effect...

Yeah, especially since the three lines of text need to be pretty short too. I tried to insert it into one mission I had made, but "September 12th, 2014 9:30 local time" was already too long, had to ditch the "local time" and shorten "September" to "Sep".

Still the effect looks cool :)

Share this post


Link to post
Share on other sites

Is it possible to put variables in the AAN news overlay?

As in say I have

_guy = "Guy's Name";

can I make it say on one line This guy: _guy is a winrar.

I looked up parsetext on the wiki and I didn't see anything.

Share this post


Link to post
Share on other sites

Hm, i don't know but why don't you just try it?^^

Share this post


Link to post
Share on other sites
Hm, i don't know but why don't you just try it?^^

Pretty lazy, mostly.

Share this post


Link to post
Share on other sites
Not a good attitude.

You will need to use format.

I was joking dude :)

I will try it later, was working on other stuff first.

The overlay looks sweet though.

Share this post


Link to post
Share on other sites

silly question maybe, but how do i turn off the darn thing :D i have a cutscene and when it ends i want the news thingy to dissapear but it just stays there as i run around zargabad =(

Share this post


Link to post
Share on other sites

2999 cuttext ["","plain"];
3000 cuttext ["","plain"];

3000 is for the AAN news Overlay. But 2999...i don't know exactly. Seen in the aanTV.sqf at first mission intro.

Edited by Imutep

Share this post


Link to post
Share on other sites

The 3000 number just defines the layer; used to define if things show up in front of others or behind others.

Hmm, maybe it actually works? Don't know actually :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×