lucilk 10 Posted September 30, 2009 here is a good one: if i name a unit (player or playable) in editor as "unit1", and i have a script with a action (addaction) that should check what is the name of the caller and then give the action, so if (name == unit1) then {script} as an ideea. i cant seem to find anything that checks what is the name of the unit that asks the execution. thanks in advance Share this post Link to post Share on other sites
kylania 546 Posted September 30, 2009 unit1 == player or just check for unit1 really. You could just add the action just to unit1 or even build in the check for unit1 in the condition field of the addAction. Share this post Link to post Share on other sites
Rommel 1 Posted September 30, 2009 If you are looking for how to add an action and check the caller, then look at this. http://community.bistudio.com/wiki/addAction _target = _this select 0; _caller = _this select 1; _id = _this select 2; _target removeAction _id; Otherwise. player == Unit1 Is suffice. Share this post Link to post Share on other sites