Jump to content
Sign in to follow this  
rick rawlings

Display current mission date in SoG Typewriter Intro

Recommended Posts

Can't quite get the syntax down and there doesn't seem to be another thread that quite hits this!

intro.sqf

sleep 5;
[ 
      [ 
           ["Welcome to Khe Sanh"], 
           ["<%1 %2 %3,date select 2,date select 3,date select 1>"] 
      ] 
] spawn vn_ms_fnc_sfx_typeText;

Welcome to Khe Sanh displays fine, the second part does not kick out any errors but does not display the date. Nothing is displayed but the typewriter clack clack is heard.

 

Thank you for any help.

 

RR

Share this post


Link to post
Share on other sites

Ok, so I just now noticed that I posted in the ARMA mission editing and scripting and not the ARMA 3 mission editing and scripting...maybe a mod can move this? Anyway, I found the answer buried in an old Kylania post. The script should run:

 

sleep 5;
[ 
      [ 
           ["Welcome to Khe Sanh"], 
           [(str(date select 1) + "-" + str(date select 2) + "-" + str(date select 0))] 
      ] 
] spawn vn_ms_fnc_sfx_typeText;

Sorry for the incorrect forum post!

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  

×