print types

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

print types

Post by UZZIEL »

I ve been looking in the radiant docu but fount no useful information

there are different types to print an message on screen.

in my case im searching a way to print it somewhere on screen by givin coordinates AND only on the client machine that triggers.

I used:

$player iprint STRING -> only client but no coordinates
locprint xoff yoff "STRING" -> coordinates but on all players

so whats the way to give printcoordinates AND only printin to the client it triggers?

thx
If you grab in toilets don´t wonder that your hands are brown.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think that's not possible :(
Image
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

huddraw

Post by UZZIEL »

and whats about huddraw_string.
Seen it in the docu - dont know the format.
Ive not used it yet so dont know if its only for the client or all.
If you grab in toilets don´t wonder that your hands are brown.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Na it's sent to all players as described in script commands - huddraw.txt
Image
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

hmh

Post by UZZIEL »

:(

now i tried $player iprint blblbla

and noticed it screens also on all players - LOL

there must be a way - i think somelike of localization.dat use

if you kill someone it writes only to you that youve killed someone.

but how? - ill try to find it in the pk3s

thx anyway
If you grab in toilets don´t wonder that your hands are brown.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Don't use $player iprint. You're sending the command to the entire array of players. Select one player to send the command to and it will work.

Example:

Code: Select all

$player[1] iprint "You're player #1" 1
if($player[2])
    $player[2] iprint "You're player #2" 1
Image
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

hmh

Post by UZZIEL »

interesting.

but then there is the problem to teach the trigger whicht player has activated it to send him the message ?

or should i substituute them but with what?


i think iam nerving already - sorry for that but this is a very important part of my map
If you grab in toilets don´t wonder that your hands are brown.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use parm.other for that. It's always set to the last guy who activated a trigger.

Example:

Code: Select all

$mytrigger waittill trigger
local.player = parm.other
local.player iprint "You pressed the button / planted a bomb / did something dangerous or stupid"
Image
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

k

Post by UZZIEL »

It works JV.

I left "$mytrigger waittill trigger" out coz got already an threadcall by the trigger (thats what i understood its for).

The funny thing is if 1 prob iz solved 2 another comez - hehehe as you see in other posts.
If you grab in toilets don´t wonder that your hands are brown.
Post Reply