OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: JasonO on 21 Oct 2006, 15:20:03

Title: Display Variable in titletext/cut
Post by: JasonO on 21 Oct 2006, 15:20:03
Hi

I have a list of player names each with variable (civ1name , civ2name .... etc) and I want to display these names in a titlecut or titletext script.

titlecut format ["text here","PLAIN DOWN",1]
I know about that, but how can I use that so variables are displayed? I know hint is hint format ["%1 - variable 1\n%2 - variable 2",variable1,variable2], but how can I use titlecut or title text to display the variables in front of the screen.

Thanks for your help  :)
Title: Re: Display Variable in titletext/cut
Post by: Mandoble on 21 Oct 2006, 15:47:10
Exactly the same:

Code: [Select]
cutText[format ["%1 %2 ",variable1,variable2],"PLAIN DOWN"]
Title: Re: Display Variable in titletext/cut
Post by: JasonO on 21 Oct 2006, 15:54:35
Thanks Mandoble  :good: