Using script, how can I get some text to be printed. In behaved theres a print command but that doesnt seem to do anything (becuase im doing it completely wrong no doubt) Help would be appreciated, thanks.
There's basically two alternative ways here (plus the target_print entity of Radiant):
1) Print command. It only works if you add an exclamation mark in front of the actual text you want to be printed, like:
print ( "!Jesterspaz is a three-headed monkey" );
2) The set_xxxx_text commands. Like set_centertext:
set ( /*@SET_TYPES*/ "SET_CENTERTEXTCOLOR", "WHITE" ); set ( /*@SET_TYPES*/ "SET_CENTERTEXT", "@PUNKS_NOTE3" );
This one works so that it prints text from a string file in the strings/english directory (or some other language, but I don't care about those). For example that example is from my Punks specific string file. It's also the same string file used by the automatic cinematic subtitling system.
So, the corresponding entry in the string file looks like this:
REFERENCE NOTE3 LANG_ENGLISH "Green catalytic rod picked up"
Obviously this latter method has the bonus advantage of allowing different colors, and all the lines are collected in the same place, thus bulk changes might be easier than hunting down lines hidden in the middle of scripts. But otherwise I doubt there's much difference.
Also, keep in mind that the subtitles are the only text that can be printed during cinematics.
yup that worked lol - just one more question which errr isnt related to this but yeah: Is it possible to slow down time in a cinematic for a fight scene im doing, or reduced the fps (of the animations) down to 5 say?
You could try the set_timescale command (under sets / float). I've never had any need to try it, but you could give it a shot.
hay is what you talking about like Qbasic? and do you remember in the old unreal tourney the buildings level, inside one of the buildings was a message that told who was in the lead and be how many frags. is this possable within the Q3 eng? what im guessing it would be is like:
IF client 1 frags age > client 1, client 2.....THEN GOTO win GOTO 2 win PRINT '[player name] is winning with [# = frags] kills ' 2 LOOP :confused: :confused: :confused: (umm im just about 100% shure that this will not work i have only used Qbasic 1 time for a class)
well i might just be way out there but it would be nifty!
Qbasic? JA uses a proprietary scripting language called ICARUS. And no, you can't do a thing like that using it. However, since the MP source has been released for a long time, I suppose it could be possible to alter the MP engine code to allow such things.
i was just using Qbasic as a refrence. and thanks......again ^.^ Lassev > §anosuke