Author Topic: Keeping A Bot Crouched [Solvedish]  (Read 661 times)

I can't find any functions that make a bot crouch and keep them that way? Any help?
« Last Edit: March 25, 2013, 09:29:24 AM by jes00 »

What have you tried? I would recommend %bot.setCrouching(1); if you haven't already.
« Last Edit: March 24, 2013, 08:17:47 PM by Honorabl3 »

What have you tried? I would recommend %bot.setCrouching(1); if you haven't already.
I've tried %bot.setCrouching(1); and %bot.playGesture(11); and %bot.hCrouch(); and all of them stop crouching after a few seconds.
« Last Edit: March 25, 2013, 07:24:16 AM by jes00 »

Ok cool. I found a way.
Code: [Select]
package stayCrouched
{
function AIPlayer::setCrouching(%obj, %bool)
{
if(%obj.stayCrouched && !%bool)
{
return;
}

parent::setCrouching(%obj, %bool);
}
};
activatePackage(stayCrouched);