AiParams.allowMovements 2

When enabled, AI will perform move commands. if you don't want the AI never to move, not even with moveTo commands, disable this feature


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolSet the AI functionality enabled

Examples

myself().getAiParams().allowMovements(false) -- prevents AI from moving (include by using the .moveTo function)

Back to Scripting API