twisted 128 Posted March 22, 2015 so ive got a hunt the intel type mission. but i need people to get out their vehicle to be able to activate an add action but right now you can just activate it from inside the vehcile. so how do i make addactions only actiavable by units on foot? Share this post Link to post Share on other sites
Tankbuster 1747 Posted March 22, 2015 I'm not at my main machine right now so can't provide exact code, but the principle of what you want is this if (vehicle player isequalto player) then { //player is on foot } else {// player is in a vehicle} So we need to take this and put it into the condition field of the addaction. Assuming you'e running this in multiplayer, you're going to be running this on the player client, _target addAction["addaction text","script_to_run_when_selected.sqf",["CLICKY!"],1,true,false,"","vehicle player isequalto player"]; Share this post Link to post Share on other sites
dscha 147 Posted March 22, 2015 (vehicle player == player) Share this post Link to post Share on other sites
Tankbuster 1747 Posted March 22, 2015 link to biki page for addaction. There's a lot there, but it's worth wading through. https://community.bistudio.com/wiki/addAction Share this post Link to post Share on other sites
twisted 128 Posted March 23, 2015 that's great, thanks a lot for that! Share this post Link to post Share on other sites