Page 1 of 1

help! printing an ingame message

Posted: Thu Jan 16, 2003 2:16 pm
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

Posted: Thu Jan 16, 2003 3:01 pm
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.

Posted: Thu Jan 16, 2003 7:00 pm
by mr zystem
Thanks, it works!