aaronhance 1 Posted August 17, 2013 Hey, I was wondering how can I add an addAction to the player while the player is in a certain area? Share this post Link to post Share on other sites
mikie boy 18 Posted August 17, 2013 couple of ways - could do it by way of a trigger - or you could have it attached to the object in the area, or attach it to the player and use the conditions part of the code - "condition: String - (optional, Arma 2 only, default:true) Code that must return true for action to be shown. Special variables "_target" (unit to which action is attached to) and "_this" (caller/executing unit) can be used in the evaluation." Share this post Link to post Share on other sites
aaronhance 1 Posted August 17, 2013 couple of ways - could do it by way of a trigger - or you could have it attached to the object in the area, or attach it to the player and use the conditions part of the code - "condition: String - (optional, Arma 2 only, default:true) Code that must return true for action to be shown. Special variables "_target" (unit to which action is attached to) and "_this" (caller/executing unit) can be used in the evaluation." How would one use a trigger for this? Share this post Link to post Share on other sites
mikie boy 18 Posted August 17, 2013 must admit im not too great when it comes to using the editor trigs - but place one down - activate with bluefor - type none - present - condition this - on act you could have hint format ["%1: entered trig", thislist]; (thislist select 0) addaction ["Say hello",{hint "hello"}]; - on dea - have hint "you left"; if that works - then you have a start - but this depends on what you want to do with the addaction - if you dont want him to keep it then you will have to remove it regardless if he uses it or not. Share this post Link to post Share on other sites
aaronhance 1 Posted August 17, 2013 Thanks for your help. Share this post Link to post Share on other sites