OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TERA_Forrest on 05 Jun 2005, 16:46:22

Title: Spaced Text
Post by: TERA_Forrest on 05 Jun 2005, 16:46:22
I'm useing this in a txt file:

titletext ["MISSION COMPLETED HOSTAGE RESCUED", "PLAIN", 3]

how do I space the words to make it look like this:

                          MISSION COMPLETED

                            HOSTAGE RESCUED
Title: Re:Spaced Text
Post by: Planck on 05 Jun 2005, 16:51:52
Ummm....I'm not sure which way round it is or if it works with titletext, but try:

titletext ["MISSION COMPLETED/nHOSTAGE RESCUED", "PLAIN", 3]

or

titletext ["MISSION COMPLETED\nHOSTAGE RESCUED", "PLAIN", 3]


Experiment


Planck
Title: Re:Spaced Text
Post by: TERA_Forrest on 05 Jun 2005, 17:11:59
thank you kindly, its the second one.  :)
Title: Re:Spaced Text
Post by: Planck on 05 Jun 2005, 17:19:12
Good....I hope I can remember which way round it is for next time.   :)


Planck
Title: Re:Spaced Text
Post by: TERA_Forrest on 05 Jun 2005, 17:27:51
I'm the same way with other code snipets, so I've gone and made a "demo mission" and a txt file with everything little option, trigger settup, and code snipet that I think I'll forget about later.  This one made it into the demo mission lol. ;)