OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ONoSixIsDown 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
_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(....)
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
-
\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 ?
-
i'll those out. and let you know if it works.
-
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