Skip to content

Instantly share code, notes, and snippets.

@Drofseh
Created March 18, 2019 05:16
Show Gist options
  • Save Drofseh/62483993bde02f2fa86e36510952e77a to your computer and use it in GitHub Desktop.
Save Drofseh/62483993bde02f2fa86e36510952e77a to your computer and use it in GitHub Desktop.
Force AI to Stand/Kneel/Prone
// For single unit
// Place in the unit's init in editor
this setUnitPos "UP";
this setUnitPos "MIDDLE";
this setUnitPos "DOWN";
// For a group
// Place in the group's init in editor
{_x setUnitPos "UP"} forEach units this;
{_x setUnitPos "MIDDLE"} forEach units this;
{_x setUnitPos "DOWN"} forEach units this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment