Jump to content
Sign in to follow this  
hetsar

Sit on Chair Action

Recommended Posts

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

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

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

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 by hetsar

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×