Page 1 of 1

scripting - one player message

Posted: Thu Jan 06, 2005 3:57 pm
by At0miC
How to send a message to 'one' player (when he hit a trigger)?

I know how to send a message to all players duh, but dunno how to send a message to one. :?

Posted: Thu Jan 06, 2005 4:17 pm
by Elgan
parm.other iprint "this message is yellow "

parm.other iprint "this message is white with a click" 1

or give the trigger a message key valure thing and it will showa white message in the center.

Posted: Thu Jan 06, 2005 4:40 pm
by At0miC
thnx :wink:

Posted: Fri Jan 07, 2005 1:10 am
by HDL_CinC_Dragon
does it have to have parm.other? can i just have

$this do that
iprint "it did the thing"
$this undo that
iprint "it undid the thing"

?

Posted: Fri Jan 07, 2005 1:13 am
by strafer
local.player = parm.other

local.player iprint "message"

Posted: Fri Jan 07, 2005 1:16 am
by HDL_CinC_Dragon
but what if my entire script uses the

Code: Select all

$targetname
and not the

Code: Select all

local.targetname = $targetname
style stuff and i dont want to use the local.player iprint? is it possible for this to work?

Posted: Fri Jan 07, 2005 2:03 am
by strafer
[HDL]-{Gen} Dragon wrote:but what if my entire script uses the

Code: Select all

$targetname
and not the

Code: Select all

local.targetname = $targetname
style stuff and i dont want to use the local.player iprint? is it possible for this to work?
I'm not fully understanding what you are asking.

Posted: Fri Jan 07, 2005 3:27 am
by HDL_CinC_Dragon
is there anyway to i can just make it

Code: Select all

iprint "yadda"
and nothing else??

Posted: Fri Jan 07, 2005 4:30 am
by strafer
[HDL]-{Gen} Dragon wrote:is there anyway to i can just make it

Code: Select all

iprint "yadda"
and nothing else??
So it would print to one player? Well, they would have to come across a trigger to do it. You can't just have stuff happen then put iprint "hello" and it print to a specific player. You scan all clients with a script with an array and a for loop and have it print to a specific player like this:

$player[local.array] iprint "hello"

Posted: Fri Jan 07, 2005 12:48 pm
by Elgan
[HDL]-{Gen} Dragon wrote:does it have to have parm.other? can i just have

$this do that
iprint "it did the thing"
$this undo that
iprint "it undid the thing"

?
well u cant print to objects?:S

parm.other i used cos its the player in a trigger.

Posted: Fri Jan 07, 2005 2:06 pm
by strafer
Yeah, I really can't see why you can't use parm.other

Posted: Fri Jan 07, 2005 8:03 pm
by HDL_CinC_Dragon
ok ok, ill use parm.other........