johnnyboy 3797 Posted December 18, 2019 This script keeps an animal stationary, but still plays its ambient idle animations. Good for keeping chickens and rabbits in cages, and goats and sheep in fenced off areas. Dropbox Link for demo mission. @haleks gave me the idea when he shared his fast rabbit trick: He attached a rabbit to an invisible man, and the man actually runs, not the rabbit, but it works great (fast running rabbits!). Thanks Haleks! An invisible man would have worked for this also, but for stationary animals, it seemed leaner to use a game logic. Here's the code to paste into an animals init field in the editor: Spoiler this enableSimulation false; JBOY_Stationary_Animal = { params["_animal"]; _logicCenter = createCenter sideLogic; _logicGroup = createGroup _logicCenter; _myLogicObject = _logicGroup createUnit ["Logic", [0,0,0], [], 0, "NONE"]; _myLogicObject setpos (getpos _animal ); _myLogicObject setdir getdir _animal; _animal attachTo [_myLogicObject,[0,0,-.1]]; _animal enableSimulation true; _animal setVariable ["BIS_fnc_animalBehaviour_disable", true]; }; [this] call JBOY_Stationary_Animal; 7 2 Share this post Link to post Share on other sites