OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: myke13021 on 22 Apr 2004, 14:51:10

Title: Show hint only to ONE player
Post by: myke13021 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
Title: Re:Show hint only to ONE player
Post by: Chris Death 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