Skip to content

Instantly share code, notes, and snippets.

@masala-man
Last active December 13, 2020 04:05
Show Gist options
  • Save masala-man/d2fbf262a1d0c5d63549e321d7b03d26 to your computer and use it in GitHub Desktop.
Save masala-man/d2fbf262a1d0c5d63549e321d7b03d26 to your computer and use it in GitHub Desktop.
[Chair Seating] Arma 3 script that makes a given unit sit on a chair #arma
//attaching to chair
unitName setBehaviour "SAFE";
unitName switchMove "InBaseMoves_SittingRifle2";
unitName disableAI "anim";
unitName attachTo [chairName,[0,0,-0.5]];
//detaching from chair
detach panzerA1;
panzerA1 setPos (c1a modelToWorld [0,-1,0]);
panzerA1 setBehaviour "AWARE";
panzerA1 enableAI "anim";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment