OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: myke13021 on 20 Mar 2007, 14:15:19

Title: setMarkerTextLocal more than 1 line text?
Post by: myke13021 on 20 Mar 2007, 14:15:19
Is it possible to generate more than 1 line of text with the setmarkertextlocal command? So it looks somethin like this (only the look, the text itself i can insert myself):

Unitname
12 Units in Group
No Vehicle

Thx in advance for your replies  ;)
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: bardosy on 20 Mar 2007, 14:42:09
Try to insert \n (backslash and n) to break lines!

Code: [Select]
Unitname\n12 Units in Group\nNo Vehicle
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: myke13021 on 20 Mar 2007, 15:18:47
i thought i already tried it with backslash (knowing this works for hints and cuttext stuff) but reading your post makes me unsure if i hit the frontslash instead of backslash accidentaly....will try later when i get to my arma pc.
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: Cheetah on 20 Mar 2007, 15:24:29
It has to be the backslash, so it's indeed a good thing to check.
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: myke13021 on 20 Mar 2007, 20:04:49
well, back on my ArmA PC i did some tests with the backslash thingy and i can definately say \n doesn't work with setmarkertextlocal.

So if anyone has an idea how i could get a Markertext with multiple lines, let me know.
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: Cheetah on 20 Mar 2007, 22:37:21
Hmm, if this isn't possible one way or another, you might want to look into creating an empty marker, but with a marker text. Don't know if that works, although I have a bad feeling that it won't work. Think that I've been there and done that, don't know if it works in ArmA and can't remember if I actually did it 'by the book'.
Title: Re: setMarkerTextLocal more than 1 line text?
Post by: h- on 21 Mar 2007, 08:25:20
I had no luck with multiline marker text (nor with multiline radiochats)..

Tried the new commands like composeText (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=c#composeText), text (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=t#text) and lineBreak (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=l#lineBreak) but no go..