help! printing an ingame message

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
mr zystem

help! printing an ingame message

Post by mr zystem »

Hi all,

I am new to mapping and want to print a message to the player's screen as soon as he/she enters the level or spawns. (In DM, TDM or OBJ). My script looks like this... why won't the message show?

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"

level waitTill prespawn

exec global/DMprecache.scr

level waittill spawn

iprintlnbold "No why don't I see this??"

end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You'll probably see it when you type a 'wait 5' above the print line.

Keep in mind the script runs on the server only, so everybody on the server will see your message, in the example case 5 seconds after the level was spawned.
Image
mr zystem

Post by mr zystem »

Thanks, it works!
Post Reply