Home   Help Search Login Register  

Author Topic: Show hint only to ONE player  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Show hint only to ONE player
« on: 22 Apr 2004, 14:51:10 »
this is a short one..

will the following line work to show a hint message only to one player?

Code: [Select]
?(_unit == local player): hint _msg
or should it be like this?

Code: [Select]
?(local _unit): hint _msg
Any help welcome
« Last Edit: 22 Apr 2004, 14:52:45 by myke13021 »

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Show hint only to ONE player
« Reply #1 on: 22 Apr 2004, 18:45:31 »
lo again Myke  :D

?(player == _unit1): hint "msg"

should do it

If not, then turn it around to:

?(_unit == player): hint "msg"

I seem to remember someone having had to turn it around
to get the check to work. But i don't really believe that there's
any difference between _unit == player and player == _unit
Maybe this guy has had something else wrong too.

Local isn't necessary in that case, and it can even screw up the
whole thing. If a player is groupleader, then every unit in his
group will be local too, and so will it be with vehicles, he's sitting
inside.

~gruezi~ CD  ;D
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted