Simple target_print question for EP maps

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Simple target_print question for EP maps

Post by dONKEY »

There may be a better entity or different way of doing this for EntityPlus, but at the start of my level I had the idea of a the player triggering a sequence of target_print ents to introduce my storyline. Trouble is my story has quite a few sentences and I can't find away of using paragraphs for target_print, I can only write one single long sentence, which doesn't fit on the screen.
Is there a better/easier way of doing this is EP?
deqer
Posts: 298
Joined: Mon Dec 28, 2009 6:30 pm

Re: Simple target_print question for EP maps

Post by deqer »

Use \n at the end of your line.

NOTE: Doesn't work if followed by certain characters such as hyphens; in those cases, prepend a space. For e.g., if your line ends with "-", then add a space "- \n", not "-\n"

If you want to do multiple, then use a bit of target_delay. If a single target_relay connect to multiple target_delays. Each target_delay will have a "wait" set to it. The wait increases for each target_print. For e.g. For 3 parts of text, 6 seconds each.

Code: Select all

target_relay -> target_delay(1) wait "0" -> target_print wait "6"
             -> target_delay(2) wait "6" -> target_print wait "6"
             -> target_delay(3) wait "12" -> target_print wait "6"
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: Simple target_print question for EP maps

Post by Eraser »

You could also make a texture with your text and render that to the screen using target_effect's OVERLAY spawnflag. If you create a custom shaded for it, you could even have it scroll across the screen.
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: Simple target_print question for EP maps

Post by Eraser »

Oh, another option is to create actual geometry, texture it with a text texture and use cutscene cameras to pan across it.
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Re: Simple target_print question for EP maps

Post by dONKEY »

Thanks guys.
I thought about the camera and geometry idea, had used that in Q4 SP, was just looking at alternatives. I'll play around a bit.
Post Reply