02-11-2016, 08:14 PM
I have a problem with custom action. I've added an action to an object in a MP-compatible way:
Now inside the script called when the action is executed...
1. How cen I get the player that triggered this action?
2. How can I display a text, either via hint or cutText to this player only?
Code:
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, nil,10,true,true,"","_this distance _target < 3"];
};
Now inside the script called when the action is executed...
1. How cen I get the player that triggered this action?
2. How can I display a text, either via hint or cutText to this player only?