hetsar 10 Posted December 17, 2010 Hi all, Is there anyway to make a chair be able to be sat on? e.g you walk up to it and get an option to sit on the chair, a bit like on the first mission of ArmA 2 on the carrier. Any ideas ? :confused: I did search but only found scripts for putting AI on the chair and no action for a player. Share this post Link to post Share on other sites
jamesf1 0 Posted December 17, 2010 (edited) Using createVehicle you can spawn a "FoldChair_with_Cargo" that can do just that. Edited December 17, 2010 by JamesF1 Share this post Link to post Share on other sites
hetsar 10 Posted December 17, 2010 Hi, I Have tried this but it still wont work, maybe i am doing something wrong. Can you explain it? Share this post Link to post Share on other sites
evans d [16aa] 12 Posted December 17, 2010 http://community.bistudio.com/wiki/ArmA2:_Moves :D Share this post Link to post Share on other sites
hetsar 10 Posted December 17, 2010 Thanks but still no luck.. Share this post Link to post Share on other sites
jamesf1 0 Posted December 18, 2010 This should work. Create a GameLogic, and put this in its init: chair = "FoldChair_with_Cargo" createVehicle (getPosATL this); chair setPosATL (getPosATL this); char setDir (getDir this) Then, move the GameLogic where you want the chair to appear, and rotate the GameLogic to change the chair's orientation. When you move up to the chair (often the back gets better results than the front), you'll get an option to 'get in chair as cargo' :) Share this post Link to post Share on other sites
hetsar 10 Posted December 18, 2010 (edited) brilliant it works a treat. Thanks for all the help! Just one small little problem though, the chair seems to not turn when I change its orientation. Any ideas? Edited December 18, 2010 by hetsar Share this post Link to post Share on other sites
enforcer4100 10 Posted December 18, 2010 use the setdir command unit setDir direction this works with units, but I am not sure it works for logics. just place this in the init of the logic. unit is chair and direction is something between 0 and 360 Share this post Link to post Share on other sites