This commit is contained in:
ineed bots 2023-07-14 21:08:57 -06:00
parent f035a2badd
commit edb0004fd8

View File

@ -129,6 +129,7 @@ Executer( eObj )
self WatchForCancelCleanup();
self ClearScriptAimPos();
self ClearScriptGoal();
self ClearPriorityObjective();
self CompletedObjective( eObj.bWasSuccessful, eObj.sReason );
}
@ -184,6 +185,13 @@ GoDoWallweapon( eObj )
model = getEnt( weapon.target, "targetname" );
org = self getOffset( model, weapon );
weap = self GetCurrentWeapon();
if ( weap == "none" || !self getAmmoCount( weap ) )
{
self SetPriorityObjective();
}
// go to weapon
self thread WatchToGoToWeapon( weapon );
self SetScriptGoal( org, 32 );