PDA

View Full Version : The noob simple question thread


Euphoric Beaver
13th Sep 2001, 03:56 AM
p=pawn(owner);
p.clientmessage(clip);

I know this puts in the chat box the value of clip but can anything be put in the brackets and it will show up.

eg. Could I put;

p=pawn(owner);
p.clientmessage(WOW! I can't believe this works!);

And it would appear in the chat box.

Also. :D

BroadcastMessage("Stomach hit");

This is the what Head Shot and Monster Kill uses, right?
Could I put anything in here and it will show up?
What if I put the code things like %k?

Euphoric Beaver
13th Sep 2001, 03:54 PM
:hmm: Anyone?

mr.s-d
13th Sep 2001, 04:10 PM
The headshot & spree messages aren't done by BroadcastMessage, I can't remember how off hand. BroadcastMessage is similar to ClientMessage, but everyone sees it rather than just the player it was called on.
Check out the messaging tutorial in the unreal section as it explains this kinda stuff better than my random ramblings.