oktyabr 12 Posted February 17, 2014 (edited) I'm slowly learning some scripting and I've cobbled together an addaction that adds a unit to the player's group. I wondered how to go about using the name and rank of the AI (provided by Arma 3, not name rank I give it) in a hint or maybe even a group chat message? Spawn unit, message shows up "Sergeant Brown reporting for duty.", etc.? This is what I've been trying, with no luck so far. I'm sure I have MUCH more to learn... _unit = group player createUnit [_soldier, Position player, [], 0, "FORM"]; recname = name _unit; recrank = rank _unit; hint format ["%2 %1 reporting for duty.", recrank, recname]; Thanks in advance! ---------- Post added at 04:00 PM ---------- Previous post was at 03:30 PM ---------- Nevermind... I figured it out :) _soldier = (group player) createUnit ["B_mas_usr_soldier_Mh_F_gn",(getmarkerpos "snispawn"),[],0,"NONE"]; _soldier addUniform "u_b_ghilliesuit"; recname = name _soldier; recrank = rank _soldier; hint format ["%2 %1 reporting for duty.", recname, recrank]; EDIT: OK, that works with the "hint" format but how would I get _soldier to do the same thing in group or side chat instead? Thanks in advance! Edited February 17, 2014 by Oktyabr Share this post Link to post Share on other sites
rakowozz 14 Posted February 17, 2014 _soldier sidechat format ["%2 %1 reporting for duty.", recname, recrank]; Share this post Link to post Share on other sites
oktyabr 12 Posted February 17, 2014 _soldier sidechat format ["%2 %1 reporting for duty.", recname, recrank]; Oooops! I forgot the "format" when I tried it! Thanks rakowozz! :) Share this post Link to post Share on other sites