Home   Help Search Login Register  

Author Topic: \n doesnt work in scripts?  (Read 891 times)

0 Members and 1 Guest are viewing this topic.

Offline ONoSixIsDown

  • Members
  • *
\n doesnt work in scripts?
« on: 15 Nov 2005, 19:32:20 »
Well i finally got a pretty decent script for a cut-sceen going with two units talking to each other and stuff.

my only problem is that when i tried to add linebreaks using "\n"the same way i would use it in the "titletext" field in the effects part of triggers/waypoints, it wouldn't work.

heres an example
Quote
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam camsettarget CO
_cam camsetrelpos [0,1,1.5]
_cam camcommit 0
@camcommitted _cam

titlecut ["Well to put it bluntly Jim, The top brass have decided to pull(....)
 
Quote
note that the above sentence fits on one line of code on the "xSQS-Edit" wizard deally.


Can someone please tell me how to start a new line after the word "pull"?

thanks
« Last Edit: 15 Nov 2005, 19:34:49 by OhNoSixIsDown »
CRIMSON REIGN COMMING..... eventually :/

Offline 456820

  • Contributing Member
  • **
Re: \n doesnt work in scripts?
« Reply #1 on: 15 Nov 2005, 20:22:14 »
\n should work always works for me an example of how i use it

titletext ["blah blah\n blah blah blah", "plain down", 1]

maybe it only works on certain types of text as i usually use titletext in your example you are using titlecut maybe changing it to titletext may work

also i dont have a space between the last word and the \n so try that too

also are you using plain down ? or something else maybe that effects the command

not sure about any of those suggestions but worth trying maybe ?

Offline ONoSixIsDown

  • Members
  • *
Re: \n doesnt work in scripts?
« Reply #2 on: 15 Nov 2005, 20:27:33 »
i'll those out. and let you know if it works.
CRIMSON REIGN COMMING..... eventually :/

Offline ONoSixIsDown

  • Members
  • *
Re: \n doesnt work in scripts?
« Reply #3 on: 15 Nov 2005, 22:19:48 »
success ;D all i needed to do was not leave any space between the end of a word and "\n".

thanks.... look for my intro mission(Lonewolf) for the campaign i'm setting up in the beta testing forum. should be up in a day or two!.  

thanks
CRIMSON REIGN COMMING..... eventually :/