Jump to content
Sign in to follow this  
nerkaid

Hint to just one player/vehicle.

Recommended Posts

Hi all!

I have a behaivour on my mission. I need to hint a message to just one player. How could I do?

I was checking "cutText" an others, but nothing seems work except the vehicleChat and radio messages, but it isn't ok for my mission, I need something like hint.

Thanks in advance and regards!

Share this post


Link to post
Share on other sites

Name your unit in editor and use (IsPlayer yourunitname) as an argument in a script or trigger or just synch your unit to a trigger with appropriate settings. Better if you explain your mission plan...

Steve

Edited by MrSteve
extra info

Share this post


Link to post
Share on other sites

Yeah, I could do it with a trigger and -> Text -> Effect, but I'm working on a script (.sqf) so I think I need a script command or something like that...

EDIT: Maybe

if (isPlayer _Soldier1) then {hint "Message";};

Could work! I going to try! Thanks

---------- Post added at 23:24 ---------- Previous post was at 22:38 ----------

I'm working on a "repair, refuell, and rearm" script, and I have a hint counter (from x% to 100%) with the level of the repairs. I want that the hint message been showed just for the pilot. Now I have this on a script activated by trigger and works:

_heli = _this select 0;

_pil = driver _heli;

_por = 100;

_signo = "%";

if (IsPlayer _pil) then {

hint format ["Estado de reparación:\n%1%2", _por, _signo];

};

But, I think the hint message will still appears to all the players on the mission, not just for the driver pilot.

EDIT: With:

if (!isPlayer _pil) exitWith{};

Still not works :(

---------- Post added at 00:05 ---------- Previous post was at 23:24 ----------

Edited by nerkaid

Share this post


Link to post
Share on other sites

isplayer returns true if _pil is any player.

you could try

if (player != _pil) exitWith{};

player returns the local player object

Share this post


Link to post
Share on other sites
[nil,playerObj,"loc",rHINT,"message"] call RE;

It's not needed if the trigger is set in the editor

Share this post


Link to post
Share on other sites
[nil,playerObj,"loc",rHINT,"message"] call RE;

Multiplayer framework code doesn't work in Arma 3 as Arma 3 doesn't use the multiplayer framework.

Also, doesn't just "player in thislist" only show an onAct hint to the player who triggered it? Or at least it shows the effects text only to the player who triggered it.

Share this post


Link to post
Share on other sites

in this case


//function:

rHINT = [];
fnc_rHINT = {
private ["_player","_message"];
_player = _this select 0;
_message = _this select 1;
if (!isNull _player && {local _player}) then {
	hint _message;
};
};
"rHINT" addPublicVariableEventHandler {(_this select 1) call fnc_rHINT;};

//call:

rHINT = [playerObj, "message"];
if (local (rHINT select 0)) then {
rHINT call fnc_rHINT;
} else {
publicVariable "rHINT";
};

Edited by Killzone_Kid

Share this post


Link to post
Share on other sites

Thanks so much for all your help!!

Yesterday night I was triying with:

if (name _pil == name player) then {};

And it seems work, I need to check it on MP.

Then, another question, I do it here for don't open another thread.

Anyone knows how to add just one bullet/round to a magazine?

Thanks in advance and regards!!!!

EDIT: Okey guys, I get it:

heli addMagazine ["12Rnd_PG_missiles", 1];

Edited by nerkaid

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×