nerkaid 1 Posted April 9, 2013 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
MrSteve 1 Posted April 9, 2013 (edited) 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 April 9, 2013 by MrSteve extra info Share this post Link to post Share on other sites
nerkaid 1 Posted April 10, 2013 (edited) 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 April 10, 2013 by nerkaid Share this post Link to post Share on other sites
lifted86 10 Posted April 10, 2013 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
giallustio 770 Posted April 10, 2013 if (name _pil == name player) then {}; Share this post Link to post Share on other sites
killzone_kid 1331 Posted April 10, 2013 [nil,playerObj,"loc",rHINT,"message"] call RE; Share this post Link to post Share on other sites
giallustio 770 Posted April 10, 2013 [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
clydefrog 3 Posted April 10, 2013 [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
killzone_kid 1331 Posted April 10, 2013 (edited) 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 April 10, 2013 by Killzone_Kid Share this post Link to post Share on other sites
nerkaid 1 Posted April 10, 2013 (edited) 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 April 11, 2013 by nerkaid Share this post Link to post Share on other sites