How to make a message appear

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Reality
CJ Newbie
CJ Newbie
Posts: 51
Joined: May 3rd, 2011, 9:57 pm

How to make a message appear

Post by Reality » July 3rd, 2011, 7:55 pm

Basically i want it when a player stands on a square text appears, i dont want the ' hintstring "text" ' way of showing it, I want the text to be visible to EVERY player when its shown, like a welcome message? like on ib_glass when you go to the secret.. how can i do this?

I need there to be 5 different squares.

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: How to make a message appear

Post by waywaaaard » July 3rd, 2011, 8:01 pm

You have to use a trigger and when triggered just use

Code: Select all

trig = getent("triggername", "targetname");

while(1)
{
	trig waittill ("trigger");
	iprintln("text to all users");
	wait(.5);
}


THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
Turbo2233
CJ Fan
CJ Fan
Posts: 116
Joined: December 8th, 2011, 1:38 pm
Location: unknown

Re: How to make a message appear

Post by Turbo2233 » December 27th, 2011, 10:35 pm

Reality wrote:Basically i want it when a player stands on a square text appears, i dont want the ' hintstring "text" ' way of showing it, I want the text to be visible to EVERY player when its shown, like a welcome message? like on ib_glass when you go to the secret.. how can i do this?

I need there to be 5 different squares.
hi you should try this h
right click on your grid an click on trigger -> use_tuch and then click (N) then the key is hintstring and the value is your message

hope it helps

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: How to make a message appear

Post by Drofder2004 » December 28th, 2011, 1:30 am

Not to mention dates...
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: How to make a message appear

Post by F |Madness| U » December 28th, 2011, 3:37 am

Drofder2004 wrote:Not to mention dates...
-

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest