Which is the reason I said to put it in a script. It should be called globally that way, I believe.WO1 Leshock said:I think he would have locality issues if he used hint in the init field of the box, wouldn't he?
CPL Harrison said:Which is the reason I said to put it in a script. It should be called globally that way, I believe.WO1 Leshock said:I think he would have locality issues if he used hint in the init field of the box, wouldn't he?
Fock_addactionMP =
{
private["_object","_screenMsg","_scriptToCall"];
_object = _this select 0;
_screenMsg = _this select 1;
_scriptToCall = _this select 2;
if(isNull _object) exitWith {};
_object addaction [_screenMsg,_scriptToCall];
};
[["Object or player here","<t color='#FF0000'>OnScreen Text</t>","Script you want to call here"],"Fock_addactionMP",nil,false] spawn BIS_fnc_MP;
Ah, see, that's what I thought he wanted. I must've misunderstood what he was saying. Also, I just remembered that ARMA 3's localization is different than ARMA 2's, and I haven't done much scripting in A3.WO1 Leshock said:I don't think that's right. Both hint and addaction have local effect. I believe the called script by addaction is only executed on the client of the player using the action.
I want to add grid coords to the text of the scroll menu, where you'd see inventory or arsenal, it would also have a writing with grids that when clicked doesnt do anything. I'm building a land nav thing.SGT Atkinson said:You want to add grid coords to the text of the scroll menu or you want to display grid coords when you use the action?
I'd prefer not to do that since I want them to actual work to find the locations and not just spot a sign at 500m.CPL Otto said:You could make an image with the grid coords and then put it as the texture on a sign. I know Arma says you need to convert to .paa but .jpg works just fine.
this addAction ["<t color='#FFFF00'>Show Position</t>", { hint format ["Your coordinates are %1!", _this select 3] }, mapGridPosition this];
Works beautifully! Thank you very much Leshock.WO1 Leshock said:I think I have something that would work. Put this in the init box for the object you want the players to find:
Code:this addAction ["<t color='#FFFF00'>Show Position</t>", { hint format ["Your coordinates are %1!", _this select 3] }, mapGridPosition this];
Tested this on a dedicated server with success.
Disregard.SGT VandeVord said:Does anyone know what the classname for our infantry uniforms are?
None of these work on this page.
http://doc.rhsmods.org/index.php/USAF_Uniforms